1
0
Fork 0

Show stderr or stdout if command fails

refactor/models
Bsian 2019-10-30 17:16:28 +00:00
parent b7307ff2da
commit 4defc574a8
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export default class Util {
const res = await ex(command);
result = res.stderr || res.stdout;
} catch (err) {
throw err;
return `Error: Command failed: ${err.cmd}\n${err.stderr || err.stdout}`;
}
return result;
}