aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/next-part.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/next-part.go')
-rw-r--r--commands/msgview/next-part.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/msgview/next-part.go b/commands/msgview/next-part.go
index c9423cc9..a98e96a7 100644
--- a/commands/msgview/next-part.go
+++ b/commands/msgview/next-part.go
@@ -1,7 +1,6 @@
package msgview
import (
- "errors"
"fmt"
"strconv"
@@ -48,5 +47,5 @@ func (NextPrevPart) Execute(aerc *widgets.Aerc, args []string) error {
}
func nextPrevPartUsage(cmd string) error {
- return errors.New(fmt.Sprintf("Usage: %s [n]", cmd))
+ return fmt.Errorf("Usage: %s [n]", cmd)
}