all: use fmt.Errorf for fomartting errors

Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
This commit is contained in:
Wagner Riffel 2019-09-03 16:34:04 -03:00 committed by Drew DeVault
parent 6838c23478
commit feacca3c5c
10 changed files with 10 additions and 15 deletions
commands/compose

View file

@ -1,7 +1,6 @@
package compose
import (
"errors"
"fmt"
"git.sr.ht/~sircmpwn/aerc/widgets"
@ -35,5 +34,5 @@ func (NextPrevField) Execute(aerc *widgets.Aerc, args []string) error {
}
func nextPrevFieldUsage(cmd string) error {
return errors.New(fmt.Sprintf("Usage: %s", cmd))
return fmt.Errorf("Usage: %s", cmd)
}