From 2fef48d56d6b1026e0a08ff17286ff12d6090726 Mon Sep 17 00:00:00 2001 From: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> Date: Tue, 4 Feb 2025 17:26:01 +0100 Subject: [PATCH] error message --- src/github/api/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github/api/mod.rs b/src/github/api/mod.rs index 9027749..b28aa84 100644 --- a/src/github/api/mod.rs +++ b/src/github/api/mod.rs @@ -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