diff options
author | Ben Fiedler <git@services.bfiedler.ch> | 2020-04-23 03:56:28 +0200 |
---|---|---|
committer | Reto Brunner <reto@labrat.space> | 2020-04-23 21:02:45 +0200 |
commit | 7c89143c709e58f22a4939886ccb15bd639eec17 (patch) | |
tree | 4714984f29b0f42014436401665d9430ec288d31 /commands/msg/pipe.go | |
parent | 280d8e7e1cce40f11c6d5f368f9060486556f96b (diff) | |
download | aerc-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/pipe.go')
-rw-r--r-- | commands/msg/pipe.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go index 9491cf5d..136d5337 100644 --- a/commands/msg/pipe.go +++ b/commands/msg/pipe.go @@ -93,8 +93,7 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error { }() err = ecmd.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 ecmd.ProcessState.ExitCode() != 0 { |