Index: sdk/lib/io/io_sink.dart |
diff --git a/sdk/lib/io/io_sink.dart b/sdk/lib/io/io_sink.dart |
index ac4ce0a1daabeeece9aa0e78da3e55533a5750cf..042a469fb67c770216b9d1c07def35d8e9e2e02d 100644 |
--- a/sdk/lib/io/io_sink.dart |
+++ b/sdk/lib/io/io_sink.dart |
@@ -38,7 +38,7 @@ abstract class IOSink implements StreamSink<List<int>>, StringSink { |
/** |
* Writes an error to the consumer. |
*/ |
- void addError(error); |
+ void addError(error, [StackTrace stackTrace]); |
/** |
* Adds all elements of the given [stream] to `this`. |
@@ -76,8 +76,8 @@ class _StreamSinkImpl<T> implements StreamSink<T> { |
_controller.add(data); |
} |
- void addError(error) { |
- _controller.addError(error); |
+ void addError(error, [StackTrace stackTrace]) { |
+ _controller.addError(error, stackTrace); |
} |
Future addStream(Stream<T> stream) { |