about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--widgets/aerc.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index 273777b..eb037df 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()