1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Tools: Make sure translation warnings are being displayed

This commit is contained in:
Laurent Cozic 2020-11-08 17:41:56 +00:00
parent 498e80f2d3
commit 48f6412721

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