diff --git a/packages/tools/tool-utils.js b/packages/tools/tool-utils.js index 0fe1e8b86..dd62977b9 100644 --- a/packages/tools/tool-utils.js +++ b/packages/tools/tool-utils.js @@ -9,7 +9,7 @@ toolUtils.execCommand = function(command) { const exec = require('child_process').exec; return new Promise((resolve, reject) => { - exec(command, (error, stdout) => { + exec(command, (error, stdout, stderr) => { if (error) { if (error.signal == 'SIGTERM') { resolve('Process was killed'); @@ -17,7 +17,7 @@ toolUtils.execCommand = function(command) { reject(error); } } else { - resolve(stdout.trim()); + resolve([stdout.trim(), stderr.trim()].join('\n')); } }); });