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

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: Address comments. 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
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..768d15bd8222af0572eb616e5f1b4b9ff641b279 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 stackTrace]) {
+ if (!completer.isCompleted) completer.completeError(error, stackTrace);
});
server.results.listen((result) {

Powered by Google App Engine
This is Rietveld 408576698