Chromium Code Reviews| Index: sdk/lib/_internal/pub/lib/src/command/run.dart |
| diff --git a/sdk/lib/_internal/pub/lib/src/command/run.dart b/sdk/lib/_internal/pub/lib/src/command/run.dart |
| index 9881b6de19fa273d0f41797ff47e3ba4a3c4b5ed..51f6adc03c3694f6dd43b36a93bc04dfc9eabaeb 100644 |
| --- a/sdk/lib/_internal/pub/lib/src/command/run.dart |
| +++ b/sdk/lib/_internal/pub/lib/src/command/run.dart |
| @@ -19,7 +19,7 @@ class RunCommand extends PubCommand { |
| "NOTE: We are currently optimizing this command's startup time."; |
| String get usage => "pub run <executable> [args...]"; |
| - Future onRun() { |
| + Future onRun() async { |
| if (commandOptions.rest.isEmpty) { |
| usageError("Must specify an executable to run."); |
| } |
| @@ -36,7 +36,8 @@ class RunCommand extends PubCommand { |
| executable = components[1]; |
| } |
| - return runExecutable(this, entrypoint, package, executable, args) |
| - .then(flushThenExit); |
| + var exitCode = await runExecutable(this, entrypoint, package, executable, |
| + args); |
| + flushThenExit(exitCode); |
|
nweiz
2014/08/27 20:10:07
We should await on this.
Bob Nystrom
2014/08/27 21:35:32
Done.
|
| } |
| } |