aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview')
-rw-r--r--commands/msgview/open.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go
index f708b2dd..4aa61336 100644
--- a/commands/msgview/open.go
+++ b/commands/msgview/open.go
@@ -60,10 +60,9 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error {
return
}
- err = lib.OpenFile(tmpFile.Name())
- if err != nil {
+ lib.OpenFile(tmpFile.Name(), func(err error) {
aerc.PushError(" " + err.Error())
- }
+ })
aerc.PushStatus("Opened", 10*time.Second)
})