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
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue