Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jondot committed Mar 28, 2023
1 parent 35b1492 commit 0b1d8dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rustwrap/src/providers/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ pub fn latest(repo: &str) -> Result<semver::Version> {
let resp = get(&api_url)?;
if !resp.status().is_success() {
bail!(
"api request failed with status: {:?} - for: {:?}",
"api request failed with status: {:?} - for: {:?} (ratelimit: {:?}/{:?})",
resp.status(),
api_url
api_url,
resp.headers().get("x-ratelimit-remaining"),
resp.headers().get("x-ratelimit-limit")
)
}
let json = resp.json::<serde_json::Value>()?;
Expand Down

0 comments on commit 0b1d8dd

Please sign in to comment.