Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 99dfb10

Browse files
KobzolMark-Simulacrum
authored andcommitted
Improve error messages for paginated REST requests
1 parent 41daa67 commit 99dfb10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/github/api/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl HttpClient {
138138
}
139139
}
140140

141-
f(resp.json().with_context(|| {
141+
f(resp.json_annotated().with_context(|| {
142142
format!("Failed to deserialize response body for {method} request to '{next_url}'")
143143
})?)?;
144144
}

0 commit comments

Comments
 (0)