Skip to content

Commit

Permalink
Fix error in response decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
intUnderflow committed Feb 1, 2022
1 parent cead950 commit 499207f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion response.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (r *Response) Decode(v interface{}) error {
err = json.Unmarshal(b, v)
}

err = terrors.WrapWithCode(err, nil, terrors.ErrBadRequest)
err = terrors.WrapWithCode(err, nil, terrors.ErrBadResponse)
if err != nil {
r.Error = err
}
Expand Down

0 comments on commit 499207f

Please sign in to comment.