File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -913,15 +913,18 @@ Future<void> validateSdkDocs() async {
913
913
}
914
914
print ('$foundSubLibCount index.html dart: entries in categories found' );
915
915
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" );
925
928
926
929
var futureConstructorFile =
927
930
File (path.join (_sdkDocsDir.path, 'dart-async' , 'Future' , 'Future.html' ));
You can’t perform that action at this time.
0 commit comments