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
+3 -3
View File
@@ -1,4 +1,4 @@
const childProcess = require('child_process');
const helpers = require('./helpers');
const fs = require('fs-extra');
const path = require('path');
@@ -15,7 +15,7 @@ sizes.forEach((size) => {
const pngFile = path.join(buildDirectory, `icon-${size}.png`);
convertArgs.push(pngFile);
childProcess.execFileSync('inkscape', [
helpers.safeExecFileSync('inkscape', [
'-z',
'-e',
pngFile,
@@ -28,4 +28,4 @@ sizes.forEach((size) => {
});
convertArgs.push(outputPath);
childProcess.execFileSync('convert', convertArgs);
helpers.safeExecFileSync('convert', convertArgs);