Merge pull request #1371 from nathanleclaire/github_api_rate_limit

Add more useful error message when possibly getting rate limited by Github
This commit is contained in:
Evan Hazlett 2015-06-16 14:46:14 -04:00
commit a4e90a558c
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ func (b *B2dUtils) GetLatestBoot2DockerReleaseURL() (string, error) {
TagName string `json:"tag_name"`
}
if err := json.NewDecoder(rsp.Body).Decode(&t); err != nil {
return "", err
return "", fmt.Errorf("Error demarshaling the Github API response: %s\nYou may be getting rate limited by Github.", err)
}
if len(t) == 0 {
return "", fmt.Errorf("no releases found")