Index: tools/coverage.dart |
diff --git a/tools/coverage.dart b/tools/coverage.dart |
index d024dfeacaefa65d8d229cfa0def0c59171dc63b..b5cc61812d5e41e8578626f0cc08050e0c680166 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(); |