Skip to content

BUG: Missing error wrapping for missing PGP key #693

@andrinoff

Description

@andrinoff

Describe the bug

In sender/sender.go:1075, fmt.Errorf("missing PGP key for %s (tried .asc and .gpg): %w", email, err) uses %w for err but %s for email which is correct, but there are instances of %s missing wrapping in sender/sender.go:561 for S/MIME certs.

To reproduce

Attempt to send an encrypted email without certificates.

Expected behavior

Ensure all certificate and PGP errors are cleanly wrapped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions