Skip to content

Commit dc05cd4

Browse files
committed
debugging
1 parent 4691d4e commit dc05cd4

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

tool/task.dart

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -913,15 +913,18 @@ Future<void> validateSdkDocs() async {
913913
}
914914
print('$foundSubLibCount index.html dart: entries in categories found');
915915

916-
// check for the existence of certain files/dirs
917-
var libsCount =
918-
_sdkDocsDir.listSync().where((fs) => fs.path.contains('dart-')).length;
919-
if (!expectedTotalCounts.contains(libsCount)) {
920-
throw StateError('Docs not generated for all the SDK libraries; expected '
921-
'$expectedTotalCounts directories, but $libsCount directories were '
922-
'generated');
923-
}
924-
print("Found $libsCount 'dart:' libraries");
916+
// Check for the existence of certain files and directories.
917+
var libraries =
918+
_sdkDocsDir.listSync().where((fs) => fs.path.contains('dart-'));
919+
var libraryCount = libraries.length;
920+
if (!expectedTotalCounts.contains(libraryCount)) {
921+
var libraryNames =
922+
libraries.map((l) => "'${path.basename(l.path)}'").join(', ');
923+
throw StateError('Unexpected docs generated for SDK libraries; expected '
924+
'$expectedTotalCounts directories, but $libraryCount directories were '
925+
'generated: $libraryNames');
926+
}
927+
print("Found $libraryCount 'dart:' libraries");
925928

926929
var futureConstructorFile =
927930
File(path.join(_sdkDocsDir.path, 'dart-async', 'Future', 'Future.html'));

0 commit comments

Comments
 (0)