Index: tests/standalone/io/https_server_test.dart |
diff --git a/tests/standalone/io/https_server_test.dart b/tests/standalone/io/https_server_test.dart |
index 490152ea9076d6b1a6faeec5581decbf07c23ff3..3f371d1e0cc5d23af6d3131d8658683a25b0761a 100644 |
--- a/tests/standalone/io/https_server_test.dart |
+++ b/tests/standalone/io/https_server_test.dart |
@@ -43,8 +43,11 @@ void testListenOn() { |
onDone(); |
}); |
}) |
- .catchError((error) { |
- Expect.fail("Unexpected error in Https client: $error"); |
+ .catchError((e) { |
+ String msg = "Unexpected error in Https client: $e"; |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) msg += "\nStackTrace: $trace"; |
+ Expect.fail(msg); |
}); |
}); |
} |