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/exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/exec.go') diff --git a/commands/exec.go b/commands/exec.go index c9aba68f..b1966c23 100644 --- a/commands/exec.go +++ b/commands/exec.go @@ -47,7 +47,7 @@ func (ExecCmd) Execute(aerc *widgets.Aerc, args []string) error { go func() { err := cmd.Run() if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) } else { if cmd.ProcessState.ExitCode() != 0 { aerc.PushError(fmt.Sprintf( -- cgit