Tools: Make sure translation warnings are being displayed

pull/4063/head
Laurent Cozic 2020-11-08 17:41:56 +00:00
parent 498e80f2d3
commit 48f6412721
1 changed files with 2 additions and 2 deletions

View File

@ -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'));
}
});
});