Skip to content

Commit

Permalink
Update error message for authenticode check (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
alerickson authored Sep 12, 2024
1 parent c9cec29 commit bf99f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/code/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@ internal static bool CheckAuthenticodeSignature(
if (!signature.Status.Equals(SignatureStatus.Valid))
{
errorRecord = new ErrorRecord(
new ArgumentException($"The signature for '{pkgName}' is '{signature.Status}."),
new ArgumentException($"The signature status for '{pkgName}' file '{Path.GetFileName(signature.Path)}' is '{signature.Status}'. Status message: '{signature.StatusMessage}'"),
"GetAuthenticodeSignatureError",
ErrorCategory.InvalidResult,
cmdletPassedIn);
Expand Down

0 comments on commit bf99f3a

Please sign in to comment.