mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 08:32:12 +01:00
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:
parent
c32ab765a7
commit
94e8d8f7bf
@ -568,7 +568,10 @@ func (aerc *Aerc) DecryptKeys(keys []openpgp.Key, symmetric bool) (b []byte, err
|
||||
err = e
|
||||
return
|
||||
}
|
||||
key.PrivateKey.Decrypt([]byte(pass))
|
||||
e = key.PrivateKey.Decrypt([]byte(pass))
|
||||
if e != nil {
|
||||
err = e
|
||||
}
|
||||
})
|
||||
for aerc.getpasswd != nil {
|
||||
aerc.ui.Tick()
|
||||
|
Loading…
Reference in New Issue
Block a user