Skip to content

Commit

Permalink
use correct err value
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdJeremia committed Nov 22, 2023
1 parent 651bf83 commit 92d11b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nethttp_request_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ func (a *NetHttpRequestAdapter) throwIfFailedResponse(ctx context.Context, respo
errValue, err := rootNode.GetObjectValue(errorCtor)
if err != nil {
spanForAttributes.RecordError(err)
if apiErrorable, ok := errValue.(abs.ApiErrorable); ok {
if apiErrorable, ok := err.(abs.ApiErrorable); ok {
apiErrorable.SetResponseHeaders(responseHeaders)
apiErrorable.SetStatusCode(response.StatusCode)
}
Expand Down

0 comments on commit 92d11b6

Please sign in to comment.