Actually reject

merge-requests/1/merge
Bsian 2019-10-30 17:34:02 +00:00
parent 4b51c2c06e
commit acf6db96da
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); 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;
} }