From 92215065eb8e889057cb1725c0df349f33a18a9f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 11 Oct 2021 20:27:31 -0700 Subject: [PATCH] cmd/derpprobe: fix fmt bug Signed-off-by: Brad Fitzpatrick --- cmd/derpprobe/derpprobe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/derpprobe/derpprobe.go b/cmd/derpprobe/derpprobe.go index a9b40d51d..89e1224e0 100644 --- a/cmd/derpprobe/derpprobe.go +++ b/cmd/derpprobe/derpprobe.go @@ -234,7 +234,7 @@ func probeUDP(ctx context.Context, dm *tailcfg.DERPMap, n *tailcfg.DERPNode) (la d := time.Since(t0) if err != nil { if ctx.Err() != nil { - return 0, fmt.Errorf("timeout reading from %v: %v", ip) + return 0, fmt.Errorf("timeout reading from %v: %v", ip, err) } if d < time.Second { return 0, fmt.Errorf("error reading from %v: %v", ip, err)