From feacca3c5caffb11be1f5f7cbfef01400b5bc944 Mon Sep 17 00:00:00 2001 From: Wagner Riffel Date: Tue, 3 Sep 2019 16:34:04 -0300 Subject: all: use fmt.Errorf for fomartting errors Signed-off-by: Wagner Riffel --- commands/msgview/next-part.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'commands/msgview/next-part.go') diff --git a/commands/msgview/next-part.go b/commands/msgview/next-part.go index c9423cc..a98e96a 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) } -- cgit 1.4.1-2-gfad0 tion value='main' selected='selected'>main Profanity fork with TTY improvementsdanisanti <danisanti@tilde.institute>
about summary refs log tree commit diff stats
blob: 9b34e82a708191897ba4ac53de596023b2859c74 (plain) (blame)
1
2
3
4