| Index: sdk/lib/io/file_impl.dart
|
| diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
|
| index 4df878a9844a6c05bcca5ab1bc08dff04c9ce4ad..941f1da5ce21bec8f38e14412833f3054e96daa7 100644
|
| --- a/sdk/lib/io/file_impl.dart
|
| +++ b/sdk/lib/io/file_impl.dart
|
| @@ -38,7 +38,7 @@ class _FileStream extends Stream<List<int>> {
|
| }
|
|
|
| StreamSubscription<List<int>> listen(void onData(List<int> event),
|
| - {void onError(error),
|
| + {Function onError,
|
| void onDone(),
|
| bool cancelOnError}) {
|
| return _controller.stream.listen(onData,
|
| @@ -191,9 +191,9 @@ class _FileStreamConsumer extends StreamConsumer<List<int>> {
|
| onDone: () {
|
| completer.complete(_file);
|
| },
|
| - onError: (e) {
|
| + onError: (e, [StackTrace stackTrace]) {
|
| openedFile.close();
|
| - completer.completeError(e);
|
| + completer.completeError(e, stackTrace);
|
| },
|
| cancelOnError: true);
|
| })
|
| @@ -418,8 +418,8 @@ class _File extends FileSystemEntity implements File {
|
| onDone: () {
|
| completer.complete(builder.takeBytes());
|
| },
|
| - onError: (e) {
|
| - completer.completeError(e);
|
| + onError: (e, StackTrace stackTrace) {
|
| + completer.completeError(e, stackTrace);
|
| },
|
| cancelOnError: true);
|
| return completer.future;
|
|
|