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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 1010403002: Ensure that stack traces are propagated more often in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 34e03ded1a8a511de20d362ee2cd38badcc5ce8b..2dac1b84d7e65a741a43b8423456b621fc2807ab 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -208,9 +208,7 @@ class _FileStreamConsumer extends StreamConsumer<List<int>> {
onError: error,
cancelOnError: true);
})
- .catchError((e) {
- completer.completeError(e);
- });
+ .catchError(completer.completeError);
return completer.future;
}

Powered by Google App Engine
This is Rietveld 408576698