Chromium Code Reviews| Index: pkg/docgen/lib/docgen.dart |
| diff --git a/pkg/docgen/lib/docgen.dart b/pkg/docgen/lib/docgen.dart |
| index af8540b49827aadeb237727fce58a822b80ea6e9..f2ec389a9290359cc26eb974863cb2db28eae414 100644 |
| --- a/pkg/docgen/lib/docgen.dart |
| +++ b/pkg/docgen/lib/docgen.dart |
| @@ -182,7 +182,12 @@ Future<MirrorSystem> _getMirrorSystemHelper(List<String> libraries, |
| }); |
| return dart2js.analyze(librariesUri, libraryUri, packageUri, |
| provider.readStringFromUri, diagnosticHandler, |
| - ['--preserve-comments', '--categories=Client,Server']); |
| + ['--preserve-comments', '--categories=Client,Server']) |
| + ..catchError((error) { |
| + logger.severe('Error: Failed to create mirror system. '); |
| + // To avoid printing the stack trace. |
| + exit(1); |
|
Andrei Mouravski
2013/06/28 22:57:34
I think you can actually extract the stack trace i
janicejl
2013/06/28 23:47:12
Have talked to Nathan.
Dart2js analyze throws a
|
| + }); |
| } |
| /** |