diff options
Diffstat (limited to 'commands/msgview')
-rw-r--r-- | commands/msgview/next.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/msgview/next.go b/commands/msgview/next.go index c218ad53..978cf10f 100644 --- a/commands/msgview/next.go +++ b/commands/msgview/next.go @@ -38,7 +38,11 @@ func (NextPrevMsg) Execute(aerc *widgets.Aerc, args []string) error { return nil } lib.NewMessageStoreView(nextMsg, store, aerc.DecryptKeys, - func(view lib.MessageView) { + func(view lib.MessageView, err error) { + if err != nil { + aerc.PushError(err.Error()) + return + } nextMv := widgets.NewMessageViewer(acct, aerc.Config(), view) aerc.ReplaceTab(mv, nextMv, nextMsg.Envelope.Subject) }) |