diff options
Diffstat (limited to 'commands/msg/read.go')
-rw-r--r-- | commands/msg/read.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/msg/read.go b/commands/msg/read.go index db463f1..30c6822 100644 --- a/commands/msg/read.go +++ b/commands/msg/read.go @@ -30,7 +30,10 @@ func (_ Read) Execute(aerc *widgets.Aerc, args []string) error { } widget := aerc.SelectedTab().(widgets.ProvidesMessage) - msg := widget.SelectedMessage() + msg, err := widget.SelectedMessage() + if err != nil { + return err + } store := widget.Store() store.Read([]uint32{msg.Uid}, args[0] == "read", func( msg types.WorkerMessage) { |