diff --git a/libs/commands.js b/libs/commands.js index a759739..9ee4ba4 100644 --- a/libs/commands.js +++ b/libs/commands.js @@ -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); }); }); }