mirror of
https://github.com/atom/atom.git
synced 2026-02-11 07:05:11 -05:00
Reject exec promise with hash instead of string
This commit is contained in:
@@ -15,7 +15,7 @@ class ChildProccess
|
||||
|
||||
$native.exec command, options, (exitStatus, stdout, stderr) ->
|
||||
if exitStatus != 0
|
||||
deferred.reject("Command '#{command}' failed with exit status #{exitStatus} and stderr '#{stderr}'")
|
||||
deferred.reject({command, exitStatus, stderr})
|
||||
else
|
||||
deferred.resolve(stdout, stderr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user