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

Unified Diff: sdk/lib/_internal/pub/lib/src/command/serve.dart

Issue 25094002: Adapt streams for additional stackTrace argument. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove types in closures. Created 7 years, 2 months 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
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback/server.dart ('k') | sdk/lib/_internal/pub/lib/src/error_group.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/command/serve.dart
diff --git a/sdk/lib/_internal/pub/lib/src/command/serve.dart b/sdk/lib/_internal/pub/lib/src/command/serve.dart
index bc6f0188f06c193902b53fb82c0e58f04375a8fb..b24de466e303f6c877395271ec6443d7b264f3db 100644
--- a/sdk/lib/_internal/pub/lib/src/command/serve.dart
+++ b/sdk/lib/_internal/pub/lib/src/command/serve.dart
@@ -91,8 +91,8 @@ class ServeCommand extends PubCommand {
log.message("Build completed with "
"${_red}${result.errors.length}$_none errors.");
}
- }, onError: (error) {
- if (!completer.isCompleted) completer.completeError(error);
+ }, onError: (error, [stackTrace]) {
+ if (!completer.isCompleted) completer.completeError(error, stackTrace);
});
server.results.listen((result) {
@@ -109,8 +109,8 @@ class ServeCommand extends PubCommand {
} else {
log.message("$msg $error");
}
- }, onError: (error) {
- if (!completer.isCompleted) completer.completeError(error);
+ }, onError: (error, [stackTrace]) {
+ if (!completer.isCompleted) completer.completeError(error, stackTrace);
});
log.message("Serving ${entrypoint.root.name} "
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback/server.dart ('k') | sdk/lib/_internal/pub/lib/src/error_group.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698