Chromium Code Reviews| Index: runtime/bin/process_patch.dart |
| diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart |
| index ff99345f4a2b4c75e82e628c36b5bef6f2e6f6ed..4d383b6d5e01188eb08824391c6bb939708b21ee 100644 |
| --- a/runtime/bin/process_patch.dart |
| +++ b/runtime/bin/process_patch.dart |
| @@ -157,8 +157,11 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { |
| _out.close(); |
| _err.close(); |
| _exitHandler.close(); |
| + var arguments = Strings.join(_arguments, ' '); |
| completer.completeException( |
| - new ProcessException(status._errorMessage, status._errorCode)); |
| + new ProcessException('$_path $arguments', |
|
Søren Gjesse
2012/11/16 12:45:02
We could also place path and arguments on the Proc
Mads Ager (google)
2012/11/16 13:00:30
Done.
|
| + status._errorMessage, |
| + status._errorCode)); |
| return; |
| } |
| _started = true; |
| @@ -245,7 +248,8 @@ class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { |
| void set onExit(void callback(int exitCode)) { |
| if (_ended) { |
| - throw new ProcessException("Process killed"); |
| + var arguments = Strings.join(_arguments, ' '); |
| + throw new ProcessException("$_path $arguments", "Process killed"); |
| } |
| _onExit = callback; |
| } |