mirror of
https://git.sr.ht/~sircmpwn/aerc
synced 2024-11-23 16:42:07 +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
|
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()
|
||||||
|
Loading…
Reference in New Issue
Block a user