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

Unified Diff: pkg/unittest/vm_config.dart

Issue 10917006: More uses of the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « pkg/unittest/core_matchers.dart ('k') | runtime/vm/exceptions_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/vm_config.dart
diff --git a/pkg/unittest/vm_config.dart b/pkg/unittest/vm_config.dart
index 39197191412c4fcead131002d65ab1665cba6c33..73bfc0ed488de31c7ba5c687f8cf3915faf8141f 100644
--- a/pkg/unittest/vm_config.dart
+++ b/pkg/unittest/vm_config.dart
@@ -15,7 +15,7 @@ class VmConfiguration extends Configuration {
String uncaughtError) {
try {
super.onDone(passed, failed, errors, results, uncaughtError);
- } catch (Exception ex) {
+ } on Exception catch (ex) {
// A non-zero exit code is used by the test infrastructure to detect
// failure.
exit(1);
« no previous file with comments | « pkg/unittest/core_matchers.dart ('k') | runtime/vm/exceptions_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698