mindlesscloud opened a new pull request, #3038:
URL: https://github.com/apache/incubator-devlake/pull/3038
# Summary
fix #2960 [Bug][gitihub] collect account failed by not found user
In the case of `err == ErrIgnoreAndContinue`, the `err` should not be
wrapped, because on the caller side, the expression `err ==
ErrIgnoreAndContinue` would evaluate as false.
```go
if apiClient.afterResponse != nil {
err = apiClient.afterResponse(res)
if err != nil && err != ErrIgnoreAndContinue {
res.Body.Close()
return nil, errors.Default.Wrap(err, fmt.Sprintf("error
running afterRequest for %s", req.URL.String()), errors.UserMessage("error
after making API call"))
}
}
```
### Does this close any open issues?
Closes #2960
### Screenshots
Include any relevant screenshots here.
### Other Information
Any other information that is important to this PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]