Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
agouin committed Aug 7, 2023
2 parents c190bec + 2da0b66 commit 7f5516c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func mostRecentReleasesForChain(
number int16,
) (builder.HeighlinerQueuedChainBuilds, error) {
if chainNodeConfig.GithubOrganization == "" || chainNodeConfig.GithubRepo == "" {
return builder.HeighlinerQueuedChainBuilds{}, fmt.Errorf("github organization: %s and/or repo: %s not provided for chain: %s\n", chainNodeConfig.GithubOrganization, chainNodeConfig.GithubRepo, chainNodeConfig.Name)
return builder.HeighlinerQueuedChainBuilds{}, fmt.Errorf("github organization: %s and/or repo: %s not provided for chain: %s", chainNodeConfig.GithubOrganization, chainNodeConfig.GithubRepo, chainNodeConfig.Name)
}
client := http.Client{Timeout: 5 * time.Second}

Expand All @@ -47,6 +47,9 @@ func mostRecentReleasesForChain(
if err != nil {
return builder.HeighlinerQueuedChainBuilds{}, fmt.Errorf("error performing github releases request: %v", err)
}
if res.StatusCode != http.StatusOK {
return builder.HeighlinerQueuedChainBuilds{}, fmt.Errorf("status code: %v", res.StatusCode)
}

defer res.Body.Close()

Expand Down

0 comments on commit 7f5516c

Please sign in to comment.