aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account
diff options
context:
space:
mode:
authorWagner Riffel <wgrriffel@gmail.com>2019-09-03 16:34:04 -0300
committerDrew DeVault <sir@cmpwn.com>2019-09-04 16:30:57 -1000
commitfeacca3c5caffb11be1f5f7cbfef01400b5bc944 (patch)
tree7f54b1affcfc2d905613de9e00b95ab4cba45a77 /commands/account
parent6838c23478944a9b45df1fa9a0f432ec77423987 (diff)
downloadaerc-feacca3c5caffb11be1f5f7cbfef01400b5bc944.tar.gz
all: use fmt.Errorf for fomartting errors
Signed-off-by: Wagner Riffel <wgrriffel@gmail.com>
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/next-folder.go2
-rw-r--r--commands/account/next-result.go2
-rw-r--r--commands/account/next.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/commands/account/next-folder.go b/commands/account/next-folder.go
index 6a22772c..037cd313 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)
}
diff --git a/commands/account/next-result.go b/commands/account/next-result.go
index ab050af3..78d437d3 100644
--- a/commands/account/next-result.go
+++ b/commands/account/next-result.go
@@ -46,5 +46,5 @@ func (NextPrevResult) Execute(aerc *widgets.Aerc, args []string) error {
}
func nextPrevResultUsage(cmd string) error {
- return errors.New(fmt.Sprintf("Usage: %s [<n>[%%]]", cmd))
+ return fmt.Errorf("Usage: %s [<n>[%%]]", cmd)
}
diff --git a/commands/account/next.go b/commands/account/next.go
index 604dcd7c..e1d3eeb6 100644
--- a/commands/account/next.go
+++ b/commands/account/next.go
@@ -78,5 +78,5 @@ func ExecuteNextPrevMessage(args []string, acct *widgets.AccountView, pct bool,
}
func nextPrevMessageUsage(cmd string) error {
- return errors.New(fmt.Sprintf("Usage: %s [<n>[%%]]", cmd))
+ return fmt.Errorf("Usage: %s [<n>[%%]]", cmd)
}