From 3620f7ea7073536c2b66754dfc538016fb665db9 Mon Sep 17 00:00:00 2001 From: Janne Enberg Date: Thu, 21 Nov 2019 20:37:13 +0200 Subject: [PATCH] Cleanup based on CI results --- client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index 867bf1f..f55d7b9 100644 --- a/client/client.go +++ b/client/client.go @@ -13,7 +13,7 @@ import ( "time" ) -var DnsOverHttpsRequestError = errors.New("DNS-over-HTTPS server did not respond with 200 OK") +var ErrDnsOverHttpsRequest = errors.New("DNS-over-HTTPS server did not respond with 200 OK") type queryResult struct { res *dns.Msg @@ -170,7 +170,7 @@ func queryDnsOverHttps(req *dns.Msg, serverUrl string) queryResult { } else { msg, _ := ioutil.ReadAll(httpRes.Body) log.Errorf("HTTP response %d %s: %s", httpRes.StatusCode, httpRes.Status, string(msg[:])) - err = DnsOverHttpsRequestError + err = ErrDnsOverHttpsRequest go shared.ReportError(req, res, rtt, err) continue }