aboutsummaryrefslogtreecommitdiff
path: root/commands/msg/move.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/move.go')
-rw-r--r--commands/msg/move.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/commands/msg/move.go b/commands/msg/move.go
index c98157e..8b19a10 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -49,7 +49,10 @@ func (_ Move) Execute(aerc *widgets.Aerc, args []string) error {
if acct == nil {
return errors.New("No account selected")
}
- msg := widget.SelectedMessage()
+ msg, err := widget.SelectedMessage()
+ if err != nil {
+ return err
+ }
store := widget.Store()
_, isMsgView := widget.(*widgets.MessageViewer)
if isMsgView {