Skip to content

Commit

Permalink
Merge pull request #5801 from damdo/clusterctl-client-ratelimit-error…
Browse files Browse the repository at this point in the history
…-typo

🌱 clusterctl: fix typo for GitHub rate limit error
  • Loading branch information
k8s-ci-robot committed Dec 6, 2021
2 parents 2938967 + 375562d commit 65d65d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/cluster/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func getGitHubClient(configVariablesClient config.VariablesClient) (*github.Clie
// handleGithubErr wraps error messages.
func handleGithubErr(err error, message string, args ...interface{}) error {
if _, ok := err.(*github.RateLimitError); ok {
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API tokens a assign it to the GITHUB_TOKEN environment variable")
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API token and assign it to the GITHUB_TOKEN environment variable")
}
return errors.Wrapf(err, message, args...)
}
2 changes: 1 addition & 1 deletion cmd/clusterctl/client/repository/repository_github.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ func (g *gitHubRepository) downloadFilesFromRelease(release *github.RepositoryRe
// handleGithubErr wraps error messages.
func (g *gitHubRepository) handleGithubErr(err error, message string, args ...interface{}) error {
if _, ok := err.(*github.RateLimitError); ok {
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API tokens a assign it to the GITHUB_TOKEN environment variable")
return errors.New("rate limit for github api has been reached. Please wait one hour or get a personal API token and assign it to the GITHUB_TOKEN environment variable")
}
return errors.Wrapf(err, message, args...)
}

0 comments on commit 65d65d2

Please sign in to comment.