From 70bfcfef42578079f211d87cddc49519ee3503dc Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Sun, 31 Jul 2022 15:15:27 +0200 Subject: lint: work nicely with wrapped errors (errorlint) Error wrapping as introduced in Go 1.13 adds some additional logic to use for comparing errors and adding information to it. Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- commands/msg/forward.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/msg') diff --git a/commands/msg/forward.go b/commands/msg/forward.go index ddc27910..d89667ae 100644 --- a/commands/msg/forward.go +++ b/commands/msg/forward.go @@ -85,7 +85,7 @@ func (forward) Execute(aerc *widgets.Aerc, args []string) error { if strings.Contains(to, "@") { tolist, err = mail.ParseAddressList(to) if err != nil { - return fmt.Errorf("invalid to address(es): %v", err) + return fmt.Errorf("invalid to address(es): %w", err) } } if len(tolist) > 0 { -- cgit