Make it clear that failing to unlock a key isn't fatal

This commit is contained in:
emersion 2018-11-24 16:51:23 +01:00
parent 05d0806b56
commit ee861e4175
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ func (c *Client) Unlock(auth *Auth, passphrase string) (openpgp.EntityList, erro
} }
if err := unlockKey(entity, passphraseBytes); err != nil { if err := unlockKey(entity, passphraseBytes); err != nil {
log.Printf("failed to unlock key %v: %v", entity.PrimaryKey.KeyIdString(), err) log.Printf("warning: failed to unlock key %v: %v", entity.PrimaryKey.KeyIdString(), err)
continue continue
} }