Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: pkg/scheduled_test/lib/src/future_group.dart

Issue 68493003: Ensure that errors have stack traces attached. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/scheduled_test/lib/src/future_group.dart
diff --git a/pkg/scheduled_test/lib/src/future_group.dart b/pkg/scheduled_test/lib/src/future_group.dart
index f1f64db746c98748d47768ee3bfd160bd1d9e256..05071c84e031e5fbd9ad6530ab5de5686fc1b132 100644
--- a/pkg/scheduled_test/lib/src/future_group.dart
+++ b/pkg/scheduled_test/lib/src/future_group.dart
@@ -34,11 +34,11 @@ class FutureGroup<T> {
completed = true;
_completer.complete(_values);
}
- }).catchError((error) {
+ }).catchError((error, stackTrace) {
if (completed) return;
completed = true;
- _completer.completeError(error);
+ _completer.completeError(error, stackTrace);
}));
return task;
« no previous file with comments | « pkg/http/test/safe_http_server.dart ('k') | pkg/scheduled_test/lib/src/scheduled_server/safe_http_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698