Get rid of the aerc.PushError(" " + $string) idiom
The individual callers should not be responsible for padding
This commit is contained in:
parent
949781fa0a
commit
8ea86cea41
18 changed files with 29 additions and 29 deletions
commands
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue