Skip to content

Commit

Permalink
fix: non-nil *StatusErr with nil value
Browse files Browse the repository at this point in the history
  • Loading branch information
xushaohua authored and morlay committed Aug 31, 2021
1 parent 06bb6ff commit df7384c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (r *Result) Into(body interface{}) (courier.Metadata, error) {
}

if e := transformer.DecodeFrom(context.Background(), r.Response.Body, rv, textproto.MIMEHeader(r.Response.Header)); e != nil {
return statuserror.Wrap(err, http.StatusInternalServerError, "DecodeFailed")
return statuserror.Wrap(e, http.StatusInternalServerError, "DecodeFailed")
}

return nil
Expand Down

0 comments on commit df7384c

Please sign in to comment.