From dd9305140b8d29e79ff610ee8d88e819d08332a9 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Wed, 27 Nov 2019 12:22:51 +0000 Subject: [PATCH] Only log signing command when it fails --- scripts/electron_winSign.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/electron_winSign.js b/scripts/electron_winSign.js index 4e88afd0..d55b8528 100644 --- a/scripts/electron_winSign.js +++ b/scripts/electron_winSign.js @@ -44,12 +44,14 @@ exports.default = async function(options) { if (options.isNest) args.push('-nest'); cmdLine += shellescape(args); - console.log("Running", cmdLine); + let signStdout; const signproc = exec(cmdLine, {}, (error, stdout) => { - console.log(stdout); + signStdout = stdout; }); signproc.on('exit', (code) => { if (code !== 0) { + console.log("Running", cmdLine); + console.log(signStdout); console.error("osslsigncode failed with code " + code); reject("osslsigncode failed with code " + code); return;