Index: tools/coverage.dart |
diff --git a/tools/coverage.dart b/tools/coverage.dart |
index 9958e4387830a034f30f180ffdbb0ab95e275af5..622218f3dd4a2ccfbdcefc8d96012ddc8c098e22 100644 |
--- a/tools/coverage.dart |
+++ b/tools/coverage.dart |
@@ -390,9 +390,8 @@ class Debugger { |
cleanup(); |
}); |
}, |
- onError: (e) { |
+ onError: (e, trace) { |
String msg = "Error while connecting to coverage target: $e"; |
- var trace = getAttachedStackTrace(e); |
if (trace != null) msg += "\nStackTrace: $trace"; |
error(msg); |
cleanup(); |