Actually reject
parent
4b51c2c06e
commit
acf6db96da
|
@ -31,7 +31,7 @@ export default class Util {
|
||||||
const res = await ex(command);
|
const res = await ex(command);
|
||||||
result = res.stderr || res.stdout;
|
result = res.stderr || res.stdout;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return `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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue