Skip to content

Commit dd93051

Browse files
committed
Only log signing command when it fails
1 parent cde5c9c commit dd93051

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/electron_winSign.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,14 @@ exports.default = async function(options) {
4444
if (options.isNest) args.push('-nest');
4545
cmdLine += shellescape(args);
4646

47-
console.log("Running", cmdLine);
47+
let signStdout;
4848
const signproc = exec(cmdLine, {}, (error, stdout) => {
49-
console.log(stdout);
49+
signStdout = stdout;
5050
});
5151
signproc.on('exit', (code) => {
5252
if (code !== 0) {
53+
console.log("Running", cmdLine);
54+
console.log(signStdout);
5355
console.error("osslsigncode failed with code " + code);
5456
reject("osslsigncode failed with code " + code);
5557
return;

0 commit comments

Comments
 (0)