Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Unified Diff: dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart

Issue 13471015: Ensure apidoc exits with non-zero exit code when dart2js crashes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Call cleanup Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dart/utils/apidoc/apidoc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
diff --git a/dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart b/dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
index c84c72c7d717860bab8bcfdefa2974ed9e990cac..658b2338e65569bf0feffa94e9b2083c10e0f502 100644
--- a/dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
+++ b/dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart
@@ -251,8 +251,9 @@ main() {
}
})
.catchError((e) {
- print('Error: generation failed: ${e.error}');
- exit(1);
+ print('Error: generation failed: ${e}');
+ dartdoc.cleanup();
+ exit(1);
})
.whenComplete(() => dartdoc.cleanup());
}
« no previous file with comments | « no previous file | dart/utils/apidoc/apidoc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698