Index: tests/standalone/io/secure_socket_test.dart |
diff --git a/tests/standalone/io/secure_socket_test.dart b/tests/standalone/io/secure_socket_test.dart |
index 09a5852fddb28d52624ef620a7732adf4a6804ab..61e5af82f83d4cfbebc4000af7855371b0889ae2 100644 |
--- a/tests/standalone/io/secure_socket_test.dart |
+++ b/tests/standalone/io/secure_socket_test.dart |
@@ -56,7 +56,12 @@ void main() { |
Expect.equals(9, body[body.length - 1]); |
server.close(); |
}, |
- onError: (e) => Expect.fail("Unexpected error $e")); |
+ onError: (e) { |
+ String msg = "Unexpected error $e"; |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) msg += "\nStackTrace: $trace"; |
+ Expect.fail(msg); |
+ }); |
}); |
}); |
} |