Don't print env vars if Node's execFileSync fails

Just print the error message, to avoid printing sensitive information
(like API access tokens).
This commit is contained in:
Oliver Hamlet
2016-12-05 23:51:45 +00:00
parent c7436586ce
commit aec6962039
4 changed files with 17 additions and 7 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ fs.readdirSync(l10nPath).forEach((file) => {
fs.accessSync(poPath, fs.R_OK);
childProcess.execFileSync('msgfmt', [
helpers.safeExecFileSync('msgfmt', [
poPath,
'-o',
moPath,