aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 273777bd..eb037df2 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -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()