Skip to content

Commit

Permalink
tools/horizon-cmp: Improve panic error message (#4365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic authored May 2, 2022
1 parent df25775 commit d732775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/horizon-cmp/internal/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func NewResponse(domain, path string, stream bool) *Response {
resp.StatusCode != http.StatusGatewayTimeout &&
resp.StatusCode != http.StatusGone &&
resp.StatusCode != http.StatusServiceUnavailable {
panic(resp.StatusCode)
panic(fmt.Errorf("%d for GET %s", resp.StatusCode, domain+path))
}

body, err := ioutil.ReadAll(resp.Body)
Expand Down

0 comments on commit d732775

Please sign in to comment.