forked from matrix/element-web
Only log signing command when it fails
This commit is contained in:
parent
cde5c9c027
commit
dd9305140b
|
@ -44,12 +44,14 @@ exports.default = async function(options) {
|
||||||
if (options.isNest) args.push('-nest');
|
if (options.isNest) args.push('-nest');
|
||||||
cmdLine += shellescape(args);
|
cmdLine += shellescape(args);
|
||||||
|
|
||||||
console.log("Running", cmdLine);
|
let signStdout;
|
||||||
const signproc = exec(cmdLine, {}, (error, stdout) => {
|
const signproc = exec(cmdLine, {}, (error, stdout) => {
|
||||||
console.log(stdout);
|
signStdout = stdout;
|
||||||
});
|
});
|
||||||
signproc.on('exit', (code) => {
|
signproc.on('exit', (code) => {
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
|
console.log("Running", cmdLine);
|
||||||
|
console.log(signStdout);
|
||||||
console.error("osslsigncode failed with code " + code);
|
console.error("osslsigncode failed with code " + code);
|
||||||
reject("osslsigncode failed with code " + code);
|
reject("osslsigncode failed with code " + code);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue