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();
|
resolve();
|
||||||
});
|
});
|
||||||
spawned.on('error', function (err) {
|
spawned.on('error', function (err) {
|
||||||
logger.error('command \'' + cmd + '\' with args \'' + args + '\' encountered an error >>> ' + err);
|
return reject('error: command \'' + cmd + '\' with args \'' + args + '\' encountered an error >>> ' + err);
|
||||||
reject(err);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue