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

Unified Diff: dart/utils/apidoc/apidoc.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 | « dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/utils/apidoc/apidoc.dart
diff --git a/dart/utils/apidoc/apidoc.dart b/dart/utils/apidoc/apidoc.dart
index 5405e3a7233c26f995614c55be3e409a7bb3a8cf..8b1258245eb13c7c6344908e9772ed8cac4c66cf 100644
--- a/dart/utils/apidoc/apidoc.dart
+++ b/dart/utils/apidoc/apidoc.dart
@@ -150,7 +150,11 @@ void main() {
.then((_) => apidoc.documentLibraries(apidocLibraries, libPath, pkgPath))
.then((_) => compileScript(mode, outputDir, libPath))
.then((_) => print(apidoc.status))
- .catchError((e) => print('Error: generation failed: ${e.error}'))
+ .catchError((e) {
+ print('Error: generation failed: ${e}');
+ apidoc.cleanup();
+ exit(1);
+ })
.whenComplete(() => apidoc.cleanup());
});
}
« no previous file with comments | « dart/sdk/lib/_internal/dartdoc/bin/dartdoc.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698