| 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} "
|
|
|