diff --git a/cmd/clusterctl/client/cluster/template.go b/cmd/clusterctl/client/cluster/template.go index 73b70ff5ce76..f5a8004d6b55 100644 --- a/cmd/clusterctl/client/cluster/template.go +++ b/cmd/clusterctl/client/cluster/template.go @@ -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...) } diff --git a/cmd/clusterctl/client/repository/repository_github.go b/cmd/clusterctl/client/repository/repository_github.go index 8fafddd7f00d..639f3fc8d057 100644 --- a/cmd/clusterctl/client/repository/repository_github.go +++ b/cmd/clusterctl/client/repository/repository_github.go @@ -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...) }