From 52c0cb12fb2ccaa68f4828b2d5fa10784fb85a95 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 12 Mar 2020 11:21:10 -0700 Subject: [PATCH] stunner: return wrapped error (currently unused) --- stunner/stunner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stunner/stunner.go b/stunner/stunner.go index 3c21aa80e..d3c480528 100644 --- a/stunner/stunner.go +++ b/stunner/stunner.go @@ -206,7 +206,7 @@ func (s *Stunner) Run(ctx context.Context) error { if len(missing) == 0 || err == nil { return nil } - return fmt.Errorf("got STUN error: %v; missing replies from: %v", err, strings.Join(missing, ", ")) + return fmt.Errorf("got STUN error: %w; missing replies from: %v", err, strings.Join(missing, ", ")) } func (s *Stunner) serverAddr(ctx context.Context, server string) (*net.UDPAddr, error) {