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/exec.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands/exec.go') diff --git a/commands/exec.go b/commands/exec.go index f615b71..e90652d 100644 --- a/commands/exec.go +++ b/commands/exec.go @@ -33,8 +33,7 @@ func (ExecCmd) Execute(aerc *widgets.Aerc, args []string) error { go func() { err := cmd.Run() if err != nil { - aerc.PushStatus(" "+err.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+err.Error()) } else { color := tcell.ColorDefault if cmd.ProcessState.ExitCode() != 0 { -- cgit v1.2.3