Skip to content

Commit

Permalink
Merge pull request #340 from RonaldinhoL/master
Browse files Browse the repository at this point in the history
allow RetryCondition and RetryHook wrap  the original error
  • Loading branch information
imroc committed Apr 7, 2024
2 parents b4352e0 + 2b95fc5 commit 3885b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (r *Request) do() (resp *Response, err error) {
if resp == nil {
resp = &Response{Request: r}
}
if err != nil {
if err != nil && resp.Err == nil {
resp.Err = err
}
}()
Expand Down

0 comments on commit 3885b33

Please sign in to comment.