Closed leetrout closed 2 years ago
This PR changes error messages when JSON cannot be parsed:
unexpected http status code: 401 invalid character 'U' looking for beginning of value
becomes
unexpected http status code: 401 Unauthorized
Also removes redundant cast to string for string formatting directive and returns error value in postprocessJsonResponse to make linter happy.
postprocessJsonResponse
This PR changes error messages when JSON cannot be parsed:
becomes
Also removes redundant cast to string for string formatting directive and returns error value in
postprocessJsonResponse
to make linter happy.