File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,9 @@ Future<void> main(List<String> arguments) async {
98
98
}, onError: (e, Chain chain) {
99
99
if (e is DartdocFailure ) {
100
100
stderr.writeln ('\n dartdoc failed: ${e }.' );
101
+ if (config.verboseWarnings) {
102
+ stderr.writeln (chain.terse);
103
+ }
101
104
exitCode = 1 ;
102
105
return ;
103
106
} else {
Original file line number Diff line number Diff line change @@ -650,7 +650,20 @@ class PackageGraph {
650
650
}
651
651
652
652
@override
653
- String toString () => 'PackageGraph built from ${defaultPackage .name }' ;
653
+ String toString () {
654
+ final divider = '=========================================================' ;
655
+ final buffer =
656
+ StringBuffer ('PackageGraph built from ${defaultPackage .name }' );
657
+ buffer.writeln (divider);
658
+ buffer.writeln ();
659
+ for (final name in packageMap.keys) {
660
+ final package = packageMap[name];
661
+ buffer.writeln ('Package $name documented at ${package .documentedWhere } '
662
+ 'with libraries: ${package .allLibraries }' );
663
+ }
664
+ buffer.writeln (divider);
665
+ return buffer.toString ();
666
+ }
654
667
655
668
final Map <Element , Library > _canonicalLibraryFor = {};
656
669
You can’t perform that action at this time.
0 commit comments