diff --git a/src/class/Util.ts b/src/class/Util.ts index 851337d..ae9547e 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -47,7 +47,7 @@ export default class Util { cmd.stdout.removeListener('data', writeFunction); cmd.stderr.removeListener('data', writeFunction); cmd.removeListener('error', writeFunction); - if (error) rej(output); + if (error) rej(new Error(output)); res(output); }); });