File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -27,25 +27,23 @@ where
27
27
. header ( header:: USER_AGENT , "crates.io (https://crates.io)" )
28
28
. send ( ) ?
29
29
. error_for_status ( )
30
- . map_err ( |e| handle_error_response ( app , & e) ) ?
30
+ . map_err ( |e| handle_error_response ( & e) ) ?
31
31
. json ( )
32
32
. map_err ( Into :: into)
33
33
}
34
34
35
- fn handle_error_response ( app : & App , error : & reqwest:: Error ) -> Box < dyn AppError > {
35
+ fn handle_error_response ( error : & reqwest:: Error ) -> Box < dyn AppError > {
36
36
use reqwest:: StatusCode as Status ;
37
37
38
38
match error. status ( ) {
39
- Some ( Status :: UNAUTHORIZED ) | Some ( Status :: FORBIDDEN ) => cargo_err ( & format ! (
39
+ Some ( Status :: UNAUTHORIZED ) | Some ( Status :: FORBIDDEN ) => cargo_err (
40
40
"It looks like you don't have permission \
41
- to query a necessary property from Github \
41
+ to query a necessary property from GitHub \
42
42
to complete this request. \
43
43
You may need to re-authenticate on \
44
44
crates.io to grant permission to read \
45
- github org memberships. Just go to \
46
- https://{}/login",
47
- app. config. domain_name,
48
- ) ) ,
45
+ GitHub org memberships.",
46
+ ) ,
49
47
Some ( Status :: NOT_FOUND ) => not_found ( ) ,
50
48
_ => internal ( & format_args ! (
51
49
"didn't get a 200 result from github: {}" ,
You can’t perform that action at this time.
0 commit comments