From fdd258f1115a889bea42e13d21713ffbb828e3bf Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Thu, 7 Mar 2024 17:28:59 -0800 Subject: [PATCH] fix: Print detailed signtool errors --- src/sign-with-signtool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sign-with-signtool.ts b/src/sign-with-signtool.ts index 4b9bc42..2ed809b 100644 --- a/src/sign-with-signtool.ts +++ b/src/sign-with-signtool.ts @@ -87,7 +87,7 @@ async function execute(options: InternalSignToolOptions) { }); if (code !== 0) { - throw new Error(`Signtool exited with code ${code}. Stderr: ${stderr}. Stdout: ${stdout}`); + throw new Error(`Signtool exited with code ${code}.\nArgs: ${args.join(' ')}\nStderr: ${stderr}.\nStdout: ${stdout}`); } }