Skip to content

Commit

Permalink
chore: change error log
Browse files Browse the repository at this point in the history
  • Loading branch information
trungnt1811 committed Oct 27, 2023
1 parent 185d83d commit c44e376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/blockscout/httpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (client *HTTPClient) request(endpoint string, queryParams []string, mapping

if rawResp.StatusCode != 200 {
rawResp.Body.Close()
return nil, fmt.Errorf("error requesting blockscout %s endpoint: %s", queryUrl, rawResp.Status)
return nil, fmt.Errorf("error requesting blockscout %s endpoint: %d", queryUrl, rawResp.StatusCode)
}

return rawResp.Body, nil
Expand Down

0 comments on commit c44e376

Please sign in to comment.