Change result return

merge-requests/2/merge
Bsian 2020-01-01 22:00:08 +00:00
parent 7b3963dc54
commit ab30afd7bc
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export default class Util {
try { try {
if (!options.env) options.env = { HOME: '/root' }; if (!options.env) options.env = { HOME: '/root' };
const res = await ex(command, options); const res = await ex(command, options);
result = res.stderr || res.stdout; 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}`));
} }