JSONClient.Do only populates APIError.Type and Message #37
Labels
bug
This issue is a bug.
help wanted
We are asking the community to submit a PR to resolve this issue.
When
JSONClient.Do
encounters a non-200 response, it returns anAPIError
instance, but one with onlyType
andMessage
properties populated:https://github.com/stripe/aws-go/blob/master/aws/json.go#L65
It would be useful to include the other potential properties of the error response as well.
The text was updated successfully, but these errors were encountered: