return better error message
This commit is contained in:
parent
86f202da0b
commit
0a74b8bbcc
1 changed files with 1 additions and 2 deletions
|
@ -15,8 +15,7 @@ function execute(cmd, args) {
|
|||
resolve();
|
||||
});
|
||||
spawned.on('error', function (err) {
|
||||
logger.error('command \'' + cmd + '\' with args \'' + args + '\' encountered an error >>> ' + err);
|
||||
reject(err);
|
||||
return reject('error: command \'' + cmd + '\' with args \'' + args + '\' encountered an error >>> ' + err);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue