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/compose/send.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands/compose') diff --git a/commands/compose/send.go b/commands/compose/send.go index c8f7cc5..f726a60 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -246,8 +246,7 @@ func (Send) Execute(aerc *widgets.Aerc, args []string) error { r.Close() composer.Close() case *types.Error: - aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+msg.Error.Error()) r.Close() composer.Close() } -- cgit 1.4.1-2-gfad0