mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
fix(registry): handle 404 over 401 error code
This commit is contained in:
parent
56579e38b2
commit
3aadebf3ea
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ impl AuthImpl for GitHubAuth {
|
|||
{
|
||||
Ok(response) => match response.error_for_status_ref() {
|
||||
Ok(_) => response,
|
||||
Err(e) if e.status().is_some_and(|s| s == StatusCode::UNAUTHORIZED) => {
|
||||
Err(e) if e.status().is_some_and(|s| s == StatusCode::NOT_FOUND) => {
|
||||
return Ok(None);
|
||||
}
|
||||
Err(_) => {
|
||||
|
|
Loading…
Reference in a new issue