Index: tests/standalone/io/file_test.dart |
diff --git a/tests/standalone/io/file_test.dart b/tests/standalone/io/file_test.dart |
index a4dc4ec25b49b14354eabe7fbe13123e63a6fdc5..224a0823f9ec51a16336bc5f242257c10622627b 100644 |
--- a/tests/standalone/io/file_test.dart |
+++ b/tests/standalone/io/file_test.dart |
@@ -152,10 +152,12 @@ class FileTest { |
} |
position += d.length; |
}, |
- onError: (e) { |
+ onError: (error) { |
print('Error on input in testReadWriteStreamLargeFile'); |
- print('with error $e'); |
- throw e; |
+ print('with error $error'); |
+ var trace = getAttachedStackTrace(error); |
+ if (trace != null) print("StackTrace: $trace"); |
+ throw error; |
}, |
onDone: () { |
Expect.equals(expectedLength, position); |
@@ -167,6 +169,8 @@ class FileTest { |
.catchError((e) { |
print('Exception while deleting ReadWriteStreamLargeFile file'); |
print('Exception $e'); |
+ var trace = getAttachedStackTrace(e); |
+ if (trace != null) print("StackTrace: $trace"); |
}); |
}); |
}); |