Better wording for failed DoH request.

Co-authored-by: Daniel Hovie <dhaavi@users.noreply.github.com>
This commit is contained in:
Vladimir Stoilov 2022-11-30 14:31:27 +02:00 committed by GitHub
parent ecbe3fce91
commit 3bf791f317
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ func (hr *HTTPSResolver) Query(ctx context.Context, q *Query) (*RRCache, error)
}()
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("http response code %s", resp.Status)
return nil, fmt.Errorf("http request failed with %s", resp.Status)
}
// Try to read the result