Skip to content

Conversation

jakepetroules
Copy link
Collaborator

In the CodeSignatureInfo.load method, when SecCodeCopySigningInformation fails, the code was incorrectly throwing MacError(result) instead of MacError(result2). This caused misleading error messages since it propagated the error code from the previous SecStaticCodeCreateWithPath call rather than the actual failing SecCodeCopySigningInformation call.

The fix ensures accurate error reporting for code signing verification failures.

In the CodeSignatureInfo.load method, when SecCodeCopySigningInformation fails,
the code was incorrectly throwing MacError(result) instead of MacError(result2).
This caused misleading error messages since it propagated the error code from
the previous SecStaticCodeCreateWithPath call rather than the actual failing
SecCodeCopySigningInformation call.

The fix ensures accurate error reporting for code signing verification failures.
@jakepetroules
Copy link
Collaborator Author

@swift-ci test

@jakepetroules jakepetroules enabled auto-merge (rebase) July 28, 2025 22:57
@jakepetroules jakepetroules merged commit c6273fa into swiftlang:release/6.2 Jul 29, 2025
23 of 24 checks passed
@jakepetroules jakepetroules deleted the eng/PR-fix-error-code-release/6.2 branch July 29, 2025 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants