Skip to content

Commit

Permalink
Output the details when failed to sign
Browse files Browse the repository at this point in the history
  • Loading branch information
damonyu666 committed Sep 14, 2024
1 parent f900ac4 commit e4f5945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Update/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e4f5945

Please sign in to comment.