Skip to content

Commit

Permalink
error message
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoieni committed Feb 4, 2025
1 parent ede6a79 commit 2fef48d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/github/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ impl HttpClient {
while let Some(next_url) = next.take() {
let resp = self
.req(method.clone(), &next_url)?
.send()?
.send()
.with_context(|| format!("failed to send request to {}", next_url.url()))?
.custom_error_for_status()?;

// Extract the next page
Expand Down

0 comments on commit 2fef48d

Please sign in to comment.