diff options
Diffstat (limited to 'commands/account/view.go')
-rw-r--r-- | commands/account/view.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/account/view.go b/commands/account/view.go index 58450044..5f5bd289 100644 --- a/commands/account/view.go +++ b/commands/account/view.go @@ -61,7 +61,11 @@ func (v ViewMessage) Execute(args []string) error { app.PushError(err.Error()) return } - viewer := app.NewMessageViewer(acct, view) + viewer, err := app.NewMessageViewer(acct, view) + if err != nil { + app.PushError(err.Error()) + return + } data := state.NewDataSetter() data.SetAccount(acct.AccountConfig()) data.SetFolder(acct.Directories().SelectedDirectory()) |