Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the error message when MessageDetails.SignedBy == nil #2466

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Jun 27, 2024

We already know that IsSigned is set; and SignedBy is the result of a lookup of SignedByKeyId , so log that value.

Currently we log MessageDetails.Signature, which will always be nil if SignedBy == nil; that's not particularly useful.

Reported in containers/skopeo#2238 .

We already know that IsSigned is set; and SignedBy is the result
of a lookup of SignedByKeyId , so log that value.

Currently we log MessageDetails.Signature, which will always be nil
if SignedBy == nil; that's not particularly useful.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@mtrmac mtrmac added the kind/bug A defect in an existing functionality (or a PR fixing it) label Jun 27, 2024
@rhatdan
Copy link
Member

rhatdan commented Jul 1, 2024

/approve
/lgtm

@rhatdan rhatdan merged commit 7ae2dfd into containers:main Jul 1, 2024
10 checks passed
@mtrmac mtrmac deleted the openpgp-error-report branch July 1, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A defect in an existing functionality (or a PR fixing it)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants