File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ library dartdoc;
10
10
11
11
import 'dart:async' ;
12
12
import 'dart:convert' ;
13
- import 'dart:io' show exitCode, stderr;
13
+ import 'dart:io' show Platform, exitCode, stderr;
14
14
15
15
import 'package:analyzer/file_system/file_system.dart' ;
16
16
import 'package:dartdoc/options.dart' ;
@@ -483,10 +483,10 @@ class Dartdoc {
483
483
},
484
484
(e, chain) {
485
485
if (e is DartdocFailure ) {
486
- stderr.writeln ('\n dartdoc failed : $e .' );
486
+ stderr.writeln ('\n $ _dartdocFailedMessage : $e .' );
487
487
exitCode = 1 ;
488
488
} else {
489
- stderr.writeln ('\n dartdoc failed : $e \n $chain ' );
489
+ stderr.writeln ('\n $ _dartdocFailedMessage : $e \n $chain ' );
490
490
exitCode = 255 ;
491
491
}
492
492
},
@@ -516,3 +516,6 @@ class DartdocResults {
516
516
517
517
DartdocResults (this .packageMeta, this .packageGraph, this .outDir);
518
518
}
519
+
520
+ String get _dartdocFailedMessage =>
521
+ 'dartdoc $packageVersion (${Platform .script .path }) failed' ;
You can’t perform that action at this time.
0 commit comments