Skip to content

Commit

Permalink
Merge branch 'master' into dns_maint
Browse files Browse the repository at this point in the history
  • Loading branch information
edglynes committed Apr 21, 2020
2 parents 1ea6386 + f8e4596 commit 2107399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-v1/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewAPIError(response *http.Response) APIError {
// other purposes.
func NewAPIErrorFromBody(response *http.Response, body []byte) APIError {
error := APIError{}
if err := jsonhooks.Unmarshal(body, &error); err == nil {
if err := jsonhooks.Unmarshal(body, &error); err != nil {
error.Status = response.StatusCode
error.Title = response.Status
}
Expand Down

0 comments on commit 2107399

Please sign in to comment.