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

Unified Diff: dart/frog/frogc.dart

Issue 9111012: Detect crashes in frog/leg (when running on VM). (Closed) Base URL: ssh://aaricia.aar/home/ahe/Dart/all/dart.googlecode.com.git@master
Patch Set: Fix mistake in status file Created 8 years, 12 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/frog/minfrogc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/frogc.dart
diff --git a/dart/frog/frogc.dart b/dart/frog/frogc.dart
index df6aca1f6c29c2a3887d920ea871ee4d1d9b97b9..f1f7a2fbc9a7d09ec30d425fafb37496e6f7db18 100644
--- a/dart/frog/frogc.dart
+++ b/dart/frog/frogc.dart
@@ -8,5 +8,18 @@
void main() {
lang.legCompile = leg.compile;
- minfrogc.main();
+ try {
+ minfrogc.main();
+ } catch (var exception, var trace) {
+ try {
+ print('Internal error: $exception');
+ } catch (var ignored) {
+ print('Internal error: error while printing exception');
+ }
+ try {
+ print(trace);
+ } finally {
+ exit(253);
+ }
+ }
}
« no previous file with comments | « no previous file | dart/frog/minfrogc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698