diff options
author | Wagner Riffel <wgrriffel@gmail.com> | 2019-09-03 16:34:04 -0300 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-09-04 16:30:57 -1000 |
commit | feacca3c5caffb11be1f5f7cbfef01400b5bc944 (patch) | |
tree | 7f54b1affcfc2d905613de9e00b95ab4cba45a77 /commands/ct.go | |
parent | 6838c23478944a9b45df1fa9a0f432ec77423987 (diff) |
all: use fmt.Errorf for fomartting errors
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
Diffstat (limited to 'commands/ct.go')
-rw-r--r-- | commands/ct.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 <tab>", args[0])) + return fmt.Errorf("Usage: %s <tab>", args[0]) } if args[1] == "-" { ok := aerc.SelectPreviousTab() |