return better error message

This commit is contained in:
Daniel Sommer 2022-02-11 02:29:51 +01:00
parent 86f202da0b
commit 0a74b8bbcc

View file

@ -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);
}); });
}); });
} }