1
0
Fork 0

Actually reject

refactor/models
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);
result = res.stderr || res.stdout;
} 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;
}