Skip to content

Commit

Permalink
Enhance logging when no private key able to decrypt data store found [f…
Browse files Browse the repository at this point in the history
…ix #111]
  • Loading branch information
Oleiade committed Sep 19, 2014
1 parent f25d60f commit d225da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/openpgp/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func Decrypt(decryptionKeys *openpgp.EntityList, s, passphrase string) ([]byte,
"Invalid passphrase supplied.")
},
nil)

if err != nil {
return nil, err
return nil, fmt.Errorf("unable to decrypt trousseau data store. " +
"No private key able to decrypt it found in your keyring.")
}

bytes, err := ioutil.ReadAll(d.UnverifiedBody)
Expand Down

0 comments on commit d225da7

Please sign in to comment.