Index: tests/standalone/io/web_socket_protocol_processor_test.dart |
diff --git a/tests/standalone/io/web_socket_protocol_processor_test.dart b/tests/standalone/io/web_socket_protocol_processor_test.dart |
index ee66f069655f8f7b066275fee5c86dab6ee36253..eb15db0ad0180c4dad8afffce45c724e70120447 100644 |
--- a/tests/standalone/io/web_socket_protocol_processor_test.dart |
+++ b/tests/standalone/io/web_socket_protocol_processor_test.dart |
@@ -51,7 +51,10 @@ class WebSocketMessageCollector { |
} |
void onError(e) { |
- Expect.fail("Unexpected error $e"); |
+ String msg = "Unexpected error $e"; |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) msg += "\nStackTrace: $trace"; |
+ Expect.fail(msg); |
} |
} |