Skip to content

Commit

Permalink
gopasspwgh-1917: provide some meaningful pointers in key error msg
Browse files Browse the repository at this point in the history
RELEASE_NOTES=n/a

Signed-off-by: Thomas Mantl <thomas.mantl@redgears.net>
  • Loading branch information
TM2500 committed Nov 25, 2021
1 parent a9e0509 commit 582ba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/backend/crypto/gpg/cli/encrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (g *GPG) Encrypt(ctx context.Context, plaintext []byte, recipients []string
if err != nil {
debug.Log("Failed to check key %s. Adding anyway. %s", err)
} else if len(kl.UseableKeys(gpg.IsAlwaysTrust(ctx))) < 1 {
out.Printf(ctx, "Not using expired key %s for encryption", r)
out.Printf(ctx, "Not using invalid key %s for encryption. (Check its expiration date or its encryption capabilities.)", r)
continue
}
args = append(args, "--recipient", r)
Expand Down

0 comments on commit 582ba75

Please sign in to comment.