aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/view.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/view.go')
-rw-r--r--commands/account/view.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/account/view.go b/commands/account/view.go
index b421666b..d52ce5b9 100644
--- a/commands/account/view.go
+++ b/commands/account/view.go
@@ -38,6 +38,10 @@ func (ViewMessage) Execute(aerc *widgets.Aerc, args []string) error {
if deleted {
return nil
}
+ if msg.Error != nil {
+ aerc.PushError(msg.Error.Error())
+ return nil
+ }
lib.NewMessageStoreView(msg, store, aerc.DecryptKeys,
func(view lib.MessageView, err error) {
if err != nil {