From e4f5945908d78121dfe4765fab3544fb54ed651e Mon Sep 17 00:00:00 2001 From: Damon Yu Date: Sat, 14 Sep 2024 10:06:41 +0800 Subject: [PATCH] Output the details when failed to sign --- src/Update/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Update/Program.cs b/src/Update/Program.cs index 7bfc2b00f..e10f88d31 100644 --- a/src/Update/Program.cs +++ b/src/Update/Program.cs @@ -608,8 +608,8 @@ static async Task signPEFile(string exePath, string signingOpts) (?=\s+) #positive look ahead for white space(s) " ).Replace(signingOpts, "/p ********"); - var msg = String.Format("Failed to sign, command invoked was: '{0} sign {1} {2}'", - exe, optsWithPasswordHidden, exePath); + var msg = String.Format("Failed to sign, command invoked was: '{0} sign {1} {2}' \n\nOutput from signtool.exe was:\n{3}", + exe, optsWithPasswordHidden, exePath, processResult.Item2); throw new Exception(msg); } else {