From 8ea86cea41aa038a25a8fee9cd540a7336869dae Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 30 Jan 2021 13:51:32 +0100 Subject: Get rid of the aerc.PushError(" " + $string) idiom The individual callers should not be responsible for padding --- commands/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/util.go') diff --git a/commands/util.go b/commands/util.go index b1872bc..8e2bdbc 100644 --- a/commands/util.go +++ b/commands/util.go @@ -32,7 +32,7 @@ func QuickTerm(aerc *widgets.Aerc, args []string, stdin io.Reader) (*widgets.Ter term.OnClose = func(err error) { if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) // remove the tab on error, otherwise it gets stuck aerc.RemoveTab(term) } else { @@ -56,7 +56,7 @@ func QuickTerm(aerc *widgets.Aerc, args []string, stdin io.Reader) (*widgets.Ter err := <-status if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) } } -- cgit v1.2.3