From 7c89143c709e58f22a4939886ccb15bd639eec17 Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Thu, 23 Apr 2020 03:56:28 +0200 Subject: Use aerc.PushError where appropriate Forgot an unused import, to save you the hassle here is v2. --- commands/account/mkdir.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'commands/account') diff --git a/commands/account/mkdir.go b/commands/account/mkdir.go index bb7e38a..9d16063 100644 --- a/commands/account/mkdir.go +++ b/commands/account/mkdir.go @@ -5,8 +5,6 @@ import ( "strings" "time" - "github.com/gdamore/tcell" - "git.sr.ht/~sircmpwn/aerc/widgets" "git.sr.ht/~sircmpwn/aerc/worker/types" ) @@ -42,8 +40,7 @@ func (MakeDir) Execute(aerc *widgets.Aerc, args []string) error { aerc.PushStatus("Directory created.", 10*time.Second) acct.Directories().Select(name) case *types.Error: - aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+msg.Error.Error()) } }) return nil -- cgit 1.4.1-2-gfad0