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

Unified Diff: tests/standalone/src/io/StreamPipeTest.dart

Issue 9699017: Start better error reporting for sockets (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed bug Created 8 years, 9 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
« no previous file with comments | « tests/standalone/src/io/SocketStreamCloseTest.dart ('k') | tests/standalone/src/io/TestingServer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/src/io/StreamPipeTest.dart
diff --git a/tests/standalone/src/io/StreamPipeTest.dart b/tests/standalone/src/io/StreamPipeTest.dart
index 221a656bce6f53753646718f919e2e75133c562f..1c632e3fb232244b08040c7b9f35329d331cb215 100644
--- a/tests/standalone/src/io/StreamPipeTest.dart
+++ b/tests/standalone/src/io/StreamPipeTest.dart
@@ -152,7 +152,7 @@ class PipeServerGame {
// stream to its output stream.
class PipeServer extends TestingServer {
void onConnection(Socket connection) {
- connection.onError = () { Expect.fail("Socket error"); };
+ connection.onError = (Exception e) { Expect.fail("Socket error $e"); };
connection.inputStream.pipe(connection.outputStream);
}
}
« no previous file with comments | « tests/standalone/src/io/SocketStreamCloseTest.dart ('k') | tests/standalone/src/io/TestingServer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698