Index: tests/standalone/io/raw_secure_socket_test.dart |
diff --git a/tests/standalone/io/raw_secure_socket_test.dart b/tests/standalone/io/raw_secure_socket_test.dart |
index 02254b4ecbb6e81c9359b0354fd37fec19421d3f..33b092f9a5591a2170157734eb57ba1f0687aa7c 100644 |
--- a/tests/standalone/io/raw_secure_socket_test.dart |
+++ b/tests/standalone/io/raw_secure_socket_test.dart |
@@ -71,8 +71,11 @@ void main() { |
default: throw "Unexpected event $event"; |
} |
}, |
- onError: (AsyncError a) { |
- Expect.fail("onError handler of RawSecureSocket stream hit: $a"); |
+ onError: (e) { |
+ String msg = "onError handler of RawSecureSocket stream hit $e"; |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) msg += "\nStackTrace: $trace"; |
+ Expect.fail(msg); |
}); |
}); |
}); |