From 6f8c8c771b0b418d556975fba1457b3afb68ad41 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Wed, 18 Aug 2021 10:11:38 -0700 Subject: [PATCH] control/controlclient: tweak a couple error messages Signed-off-by: Brad Fitzpatrick --- control/controlclient/direct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/controlclient/direct.go b/control/controlclient/direct.go index 4da0c2c7b..766971291 100644 --- a/control/controlclient/direct.go +++ b/control/controlclient/direct.go @@ -1311,10 +1311,10 @@ func tsmpPing(logf logger.Logf, c *http.Client, pr *tailcfg.PingRequest, pinger return errors.New("invalid PingRequest with no URL") } if pr.IP.IsZero() { - return fmt.Errorf("PingRequest with no proper IP got %v", pr.IP) + return errors.New("PingRequest without IP") } if !strings.Contains(pr.Types, "TSMP") { - return fmt.Errorf("PingRequest with no TSMP in Types, got : %v", pr.Types) + return fmt.Errorf("PingRequest with no TSMP in Types, got %q", pr.Types) } now := time.Now()