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) { |