Reject with error
parent
f42dac6432
commit
a1bd340d98
|
@ -47,7 +47,7 @@ export default class Util {
|
||||||
cmd.stdout.removeListener('data', writeFunction);
|
cmd.stdout.removeListener('data', writeFunction);
|
||||||
cmd.stderr.removeListener('data', writeFunction);
|
cmd.stderr.removeListener('data', writeFunction);
|
||||||
cmd.removeListener('error', writeFunction);
|
cmd.removeListener('error', writeFunction);
|
||||||
if (error) rej(output);
|
if (error) rej(new Error(output));
|
||||||
res(output);
|
res(output);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue