1
0
Fork 0

Change reject message

refactor/models
Bsian 2020-01-01 22:06:43 +00:00
parent df58a9c4fe
commit bee69c5041
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default class Util {
const res = await ex(command, options); const res = await ex(command, options);
result = `${res.stdout}${res.stderr}`; result = `${res.stdout}${res.stderr}`;
} catch (err) { } catch (err) {
return Promise.reject(new 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;
} }