Skip to content

Commit

Permalink
Make it clear that failing to unlock a key isn't fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
emersion committed Nov 24, 2018
1 parent 05d0806 commit ee861e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protonmail/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (c *Client) Unlock(auth *Auth, passphrase string) (openpgp.EntityList, erro
}

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
}

Expand Down

0 comments on commit ee861e4

Please sign in to comment.