likyh commented on code in PR #4891:
URL:
https://github.com/apache/incubator-devlake/pull/4891#discussion_r1162248550
##########
backend/plugins/teambition/api/connection.go:
##########
@@ -70,7 +70,7 @@ func TestConnection(input *plugin.ApiResourceInput)
(*plugin.ApiResourceOutput,
return nil, err
}
if resBody.Code != http.StatusOK {
- return nil,
errors.HttpStatus(res.StatusCode).New(fmt.Sprintf("unexpected status code: %d",
res.StatusCode))
+ return nil,
errors.HttpStatus(resBody.Code).New(fmt.Sprintf("unexpected code: %d, %s",
resBody.Code, resBody.ErrorMessage))
Review Comment:
Emm, no doc found
--
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]