Index: pkg/barback/lib/src/stream_replayer.dart |
diff --git a/pkg/barback/lib/src/stream_replayer.dart b/pkg/barback/lib/src/stream_replayer.dart |
index 177e13d609f6cc9bb0fafa00ec85ae8d4a8007b6..67e75fab1883943f1ec4b54b8e201174528430f2 100644 |
--- a/pkg/barback/lib/src/stream_replayer.dart |
+++ b/pkg/barback/lib/src/stream_replayer.dart |
@@ -34,10 +34,10 @@ class StreamReplayer<T> { |
for (var controller in _controllers) { |
controller.add(data); |
} |
- }, onError: (error) { |
+ }, onError: (error, [StackTrace stackTrace]) { |
_buffer.add(new Either<T, dynamic>.withSecond(error)); |
for (var controller in _controllers) { |
- controller.addError(error); |
+ controller.addError(error, stackTrace); |
} |
}, onDone: () { |
_isClosed = true; |