klesh commented on code in PR #3076:
URL: https://github.com/apache/incubator-devlake/pull/3076#discussion_r971974447
##########
plugins/github/api/connection.go:
##########
@@ -90,18 +90,23 @@ func TestConnection(input *core.ApiResourceInput)
(*core.ApiResourceOutput, erro
results <- VerifyResult{err:
errors.Default.Wrap(err, fmt.Sprintf("verify token failed for #%v %s", j,
token))}
return
} else if githubUserOfToken.Login == "" {
- results <- VerifyResult{err:
errors.Default.Wrap(err, fmt.Sprintf("invalid token for #%v %s", j, token))}
+ results <- VerifyResult{err:
errors.Default.Wrap(errors.Unauthorized.New("invalid token"),
fmt.Sprintf("invalid token for #%v %s", j, token))}
Review Comment:
Please remove the token from the error message. We don't need it anymore
--
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]