This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ impl HttpClient {
105
105
let resp = self
106
106
. req ( Method :: POST , & GitHubUrl :: new ( "graphql" , org) ) ?
107
107
. json ( & Request { query, variables } )
108
- . send ( ) ?
108
+ . send ( )
109
+ . context ( "failed to send graphql request" ) ?
109
110
. custom_error_for_status ( ) ?;
110
111
111
112
let res: GraphResult < R > = resp. json_annotated ( ) . with_context ( || {
Original file line number Diff line number Diff line change @@ -282,7 +282,7 @@ impl GithubRead for GitHubApiRead {
282
282
} ,
283
283
org,
284
284
)
285
- . with_context ( || format ! ( "failed to retrieve repo `{org}/{repo}" ) ) ?;
285
+ . with_context ( || format ! ( "failed to retrieve repo `{org}/{repo}` " ) ) ?;
286
286
287
287
let repo = result. repository . map ( |repo_response| Repo {
288
288
node_id : repo_response. id ,
Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ impl ResponseExt for Response {
13
13
match self . error_for_status_ref ( ) {
14
14
Ok ( _) => Ok ( self ) ,
15
15
Err ( err) => {
16
- let body = self . text ( ) ?;
17
- Err ( err) . context ( format ! ( "Body: {:?}" , body ) )
16
+ let body = self . text ( ) . context ( "failed to read response body" ) ?;
17
+ Err ( err) . context ( format ! ( "Body: {body :?}" ) )
18
18
}
19
19
}
20
20
}
You can’t perform that action at this time.
0 commit comments