aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/next.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/next.go')
-rw-r--r--commands/account/next.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/account/next.go b/commands/account/next.go
index b54ed0c1..92624316 100644
--- a/commands/account/next.go
+++ b/commands/account/next.go
@@ -77,7 +77,11 @@ func (np NextPrevMsg) Execute(args []string) error {
app.PushError(err.Error())
return
}
- nextMv := app.NewMessageViewer(acct, view)
+ nextMv, err := app.NewMessageViewer(acct, view)
+ if err != nil {
+ app.PushError(err.Error())
+ return
+ }
app.ReplaceTab(mv, nextMv,
nextMsg.Envelope.Subject, true)
})