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

Unified Diff: tests/standalone/debugger/debug_lib.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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
Index: tests/standalone/debugger/debug_lib.dart
diff --git a/tests/standalone/debugger/debug_lib.dart b/tests/standalone/debugger/debug_lib.dart
index bc1f24640a9805fe1cfb2eadf400c38b5fe8598e..eb6050ee8520ebd7b67167d07b8c5c9da9f7fe42 100644
--- a/tests/standalone/debugger/debug_lib.dart
+++ b/tests/standalone/debugger/debug_lib.dart
@@ -458,11 +458,16 @@ class Debugger {
},
onError: (e) {
print("Error '$e' detected in input stream from debug target");
+ var trace = getAttachedStackTrace(e);
+ if (trace != null) print("StackTrace: $trace");
close(killDebugee: true);
});
},
- onError: (asyncErr) {
- error("Error while connecting to debugee: $asyncErr");
+ onError: (e) {
+ String msg = "Error while connecting to debugee: $e";
+ var trace = getAttachedStackTrace(e);
+ if (trace != null) msg += "\nStackTrace: $trace";
+ error(msg);
close(killDebugee: true);
});
}
@@ -518,6 +523,8 @@ bool RunScript(List script) {
onError: (e) {
if (++retries >= 3) {
print('unable to find unused port: $e');
+ var trace = getAttachedStackTrace(e);
+ if (trace != null) print("StackTrace: $trace");
return -1;
} else {
// Retry with another random port.
« no previous file with comments | « tests/lib/async/stream_subscription_as_future_test.dart ('k') | tests/standalone/io/dart_std_io_pipe_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698