Skip to content

Commit bf99f3a

Browse files
authored
Update error message for authenticode check (#1701)
1 parent c9cec29 commit bf99f3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/code/Utils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1999,7 +1999,7 @@ internal static bool CheckAuthenticodeSignature(
19991999
if (!signature.Status.Equals(SignatureStatus.Valid))
20002000
{
20012001
errorRecord = new ErrorRecord(
2002-
new ArgumentException($"The signature for '{pkgName}' is '{signature.Status}."),
2002+
new ArgumentException($"The signature status for '{pkgName}' file '{Path.GetFileName(signature.Path)}' is '{signature.Status}'. Status message: '{signature.StatusMessage}'"),
20032003
"GetAuthenticodeSignatureError",
20042004
ErrorCategory.InvalidResult,
20052005
cmdletPassedIn);

0 commit comments

Comments
 (0)