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); |