about summary refs log tree commit diff stats
path: root/commands/msg/move.go
diff options
context:
space:
mode:
authorBen Fiedler <git@services.bfiedler.ch>2020-04-23 03:56:28 +0200
committerReto Brunner <reto@labrat.space>2020-04-23 21:02:45 +0200
commit7c89143c709e58f22a4939886ccb15bd639eec17 (patch)
tree4714984f29b0f42014436401665d9430ec288d31 /commands/msg/move.go
parent280d8e7e1cce40f11c6d5f368f9060486556f96b (diff)
downloadaerc-7c89143c709e58f22a4939886ccb15bd639eec17.tar.gz
Use aerc.PushError where appropriate
Forgot an unused import, to save you the hassle here is v2.
Diffstat (limited to 'commands/msg/move.go')
-rw-r--r--commands/msg/move.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/msg/move.go b/commands/msg/move.go
index 37402ef..182817e 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -6,7 +6,6 @@ import (
 	"time"
 
 	"git.sr.ht/~sircmpwn/getopt"
-	"github.com/gdamore/tcell"
 
 	"git.sr.ht/~sircmpwn/aerc/commands"
 	"git.sr.ht/~sircmpwn/aerc/widgets"
@@ -72,8 +71,7 @@ func (Move) Execute(aerc *widgets.Aerc, args []string) error {
 		case *types.Done:
 			aerc.PushStatus("Message moved to "+joinedArgs, 10*time.Second)
 		case *types.Error:
-			aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second).
-				Color(tcell.ColorDefault, tcell.ColorRed)
+			aerc.PushError(" "+msg.Error.Error())
 		}
 	})
 	return nil