summary refs log tree commit diff stats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/msglist.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go
index f36901f..5aedb44 100644
--- a/widgets/msglist.go
+++ b/widgets/msglist.go
@@ -166,7 +166,11 @@ func (ml *MessageList) MouseEvent(localX int, localY int, event tcell.Event) {
 					return
 				}
 				lib.NewMessageStoreView(msg, store, ml.aerc.DecryptKeys,
-					func(view lib.MessageView) {
+					func(view lib.MessageView, err error) {
+						if err != nil {
+							ml.aerc.PushError(err.Error())
+							return
+						}
 						viewer := NewMessageViewer(acct, ml.aerc.Config(), view)
 						ml.aerc.NewTab(viewer, msg.Envelope.Subject)
 					})