From feacca3c5caffb11be1f5f7cbfef01400b5bc944 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Tue, 3 Sep 2019 16:34:04 -0300 Subject: all: use fmt.Errorf for fomartting errors Signed-off-by: Wagner Riffel --- commands/account/next-folder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/account/next-folder.go') diff --git a/commands/account/next-folder.go b/commands/account/next-folder.go index 6a22772..037cd31 100644 --- a/commands/account/next-folder.go +++ b/commands/account/next-folder.go @@ -49,5 +49,5 @@ func (NextPrevFolder) Execute(aerc *widgets.Aerc, args []string) error { } func nextPrevFolderUsage(cmd string) error { - return errors.New(fmt.Sprintf("Usage: %s [n]", cmd)) + return fmt.Errorf("Usage: %s [n]", cmd) } -- cgit v1.2.3