diff options
Diffstat (limited to 'commands/prompt.go')
-rw-r--r-- | commands/prompt.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/prompt.go b/commands/prompt.go index fe152c80..2d6d01de 100644 --- a/commands/prompt.go +++ b/commands/prompt.go @@ -1,7 +1,6 @@ package commands import ( - "errors" "fmt" "git.sr.ht/~sircmpwn/aerc/widgets" @@ -23,7 +22,7 @@ func (Prompt) Complete(aerc *widgets.Aerc, args []string) []string { func (Prompt) Execute(aerc *widgets.Aerc, args []string) error { if len(args) < 3 { - return errors.New(fmt.Sprintf("Usage: %s <prompt> <cmd>", args[0])) + return fmt.Errorf("Usage: %s <prompt> <cmd>", args[0]) } prompt := args[1] |