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/ct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/ct.go') diff --git a/commands/ct.go b/commands/ct.go index f84e8a9..3cae0bd 100644 --- a/commands/ct.go +++ b/commands/ct.go @@ -34,7 +34,7 @@ func (ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string { func (ChangeTab) Execute(aerc *widgets.Aerc, args []string) error { if len(args) != 2 { - return errors.New(fmt.Sprintf("Usage: %s ", args[0])) + return fmt.Errorf("Usage: %s ", args[0]) } if args[1] == "-" { ok := aerc.SelectPreviousTab() -- cgit v1.2.3