Reject with error

merge-requests/4/head
Bsian 2020-05-12 16:21:26 +01:00
parent f42dac6432
commit a1bd340d98
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

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