From 0a74b8bbccd06b919a127b4c702d7b639e82bdb1 Mon Sep 17 00:00:00 2001 From: velvettear Date: Fri, 11 Feb 2022 02:29:51 +0100 Subject: [PATCH] return better error message --- libs/commands.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }); }); }