Index: utils/pub/utils.dart |
diff --git a/utils/pub/utils.dart b/utils/pub/utils.dart |
index 85411740ea88091e772444df540cb13fb09644a7..818fe34acba5d05b0553761c144be2d8ad8b3e23 100644 |
--- a/utils/pub/utils.dart |
+++ b/utils/pub/utils.dart |
@@ -59,7 +59,7 @@ class FutureGroup<T> { |
if (completed) return; |
completed = true; |
- _completer.completeError(e.error, e.stackTrace); |
+ _completer.completeError(e); |
})); |
return task; |
@@ -156,7 +156,7 @@ Future sleep(int milliseconds) { |
/// to [completer]. |
void chainToCompleter(Future future, Completer completer) { |
future.then((value) => completer.complete(value), |
- onError: (e) => completer.completeError(e.error, e.stackTrace)); |
+ onError: (e) => completer.completeError(e)); |
} |
// TODO(nweiz): remove this when issue 7964 is fixed. |
@@ -169,7 +169,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")); |
}, cancelOnError: true); |