Skip to content

Commit

Permalink
Add raw response to failed JSON indent
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoAn committed Oct 29, 2022
1 parent 17d1080 commit dd30d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func formatResponseBody(res *http.Response, httpreq *httplib.BeegoHttpRequest, p
var output bytes.Buffer
err := json.Indent(&output, body, "", " ")
if err != nil {
log.Fatal("Response Json Indent: ", err)
log.Fatalf("failed to JSON indent response body: %v. Body: %s", err, string(body))
}

return output.String()
Expand Down

0 comments on commit dd30d6a

Please sign in to comment.