Index: pkg/scheduled_test/lib/src/utils.dart |
diff --git a/pkg/scheduled_test/lib/src/utils.dart b/pkg/scheduled_test/lib/src/utils.dart |
index 0530f11482cb28d1b842fcf6dae32f55f33e6318..1c6c750586301d3e922e07d00352ec76456a5bad 100644 |
--- a/pkg/scheduled_test/lib/src/utils.dart |
+++ b/pkg/scheduled_test/lib/src/utils.dart |
@@ -107,7 +107,7 @@ Future streamFirst(Stream stream) { |
subscription.cancel(); |
completer.complete(value); |
}, onError: (e) { |
- completer.completeError(e.error, e.stackTrace); |
+ completer.completeError(e); |
}, onDone: () { |
completer.completeError(new StateError("No elements"), stackTrace); |
}, cancelOnError: true); |