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/account/next-result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/account/next-result.go') 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 [[%%]]", cmd)) + return fmt.Errorf("Usage: %s [[%%]]", cmd) } -- cgit 1.4.1-2-gfad0 ;'> Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
blob: ca1057c410903d09b11b72b028d19d99bb84b42d (plain) (tree)
1
2
3
4
5
6
7
8
9
10