diff options
Diffstat (limited to 'commands/account')
-rw-r--r-- | commands/account/next-folder.go | 2 | ||||
-rw-r--r-- | commands/account/next-result.go | 2 | ||||
-rw-r--r-- | commands/account/next.go | 2 |
3 files changed, 3 insertions, 3 deletions
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) } diff --git a/commands/account/next-result.go b/commands/account/next-result.go index ab050af..78d437d 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 604dcd7..e1d3eeb 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) } |