Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
defer resp.Body.Close()

if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("HTTP error: %q [%d]", resp.Status, resp.StatusCode)
return nil, fmt.Errorf("HTTP error: %q [%d] from %q", resp.Status, resp.StatusCode, url)

Check warning on line 45 in request.go

View check run for this annotation

Codecov / codecov/patch

request.go#L45

Added line #L45 was not covered by tests
}

if ct := resp.Header.Get("Content-Type"); ct != dohMimeType {
Expand Down
Loading