From bee69c5041e0b6c2d8c52eb6c523e2a643df559d Mon Sep 17 00:00:00 2001 From: Bsian Date: Wed, 1 Jan 2020 22:06:43 +0000 Subject: [PATCH] Change reject message --- src/class/Util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/Util.ts b/src/class/Util.ts index f050ef6..c52ac58 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -37,7 +37,7 @@ export default class Util { const res = await ex(command, options); result = `${res.stdout}${res.stderr}`; } catch (err) { - return Promise.reject(new Error(`Command failed: ${err.cmd}\n${err.stderr || err.stdout}`)); + return Promise.reject(new Error(`Command failed: ${err.cmd}\n${err.stderr}${err.stdout}`)); } return result; }