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/next-tab.go | |
parent | 6838c23478944a9b45df1fa9a0f432ec77423987 (diff) | |
download | aerc-feacca3c5caffb11be1f5f7cbfef01400b5bc944.tar.gz |
all: use fmt.Errorf for fomartting errors
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
Diffstat (limited to 'commands/next-tab.go')
-rw-r--r-- | commands/next-tab.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/next-tab.go b/commands/next-tab.go index 5af8692c..fc668f15 100644 --- a/commands/next-tab.go +++ b/commands/next-tab.go @@ -1,7 +1,6 @@ package commands import ( - "errors" "fmt" "strconv" @@ -47,5 +46,5 @@ func (NextPrevTab) Execute(aerc *widgets.Aerc, args []string) error { } func nextPrevTabUsage(cmd string) error { - return errors.New(fmt.Sprintf("Usage: %s [n]", cmd)) + return fmt.Errorf("Usage: %s [n]", cmd) } |