feat(pgp): Show error message from pgp

The error wasn't shown, making errors like wrong password being ignored
and the password is prompted again.
This commit is contained in:
Ray Ganardi 2020-05-19 13:06:48 +02:00 committed by Drew DeVault
parent c32ab765a7
commit 94e8d8f7bf

View file

@ -568,7 +568,10 @@ func (aerc *Aerc) DecryptKeys(keys []openpgp.Key, symmetric bool) (b []byte, err
err = e err = e
return return
} }
key.PrivateKey.Decrypt([]byte(pass)) e = key.PrivateKey.Decrypt([]byte(pass))
if e != nil {
err = e
}
}) })
for aerc.getpasswd != nil { for aerc.getpasswd != nil {
aerc.ui.Tick() aerc.ui.Tick()