Skip to content

Commit

Permalink
Cleanup based on CI results
Browse files Browse the repository at this point in the history
  • Loading branch information
lietu committed Nov 21, 2019
1 parent 5c65b3f commit 3620f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 3620f7e

Please sign in to comment.