forked from engineering/cloudservices
Show stderr or stdout if command fails
parent
b7307ff2da
commit
4defc574a8
|
@ -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) {
|
||||||
throw err;
|
return `Error: Command failed: ${err.cmd}\n${err.stderr || err.stdout}`;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue