Skip to content

Commit

Permalink
fix: wrong error code
Browse files Browse the repository at this point in the history
  • Loading branch information
1zun4 committed Jun 27, 2024
1 parent 5ce07e9 commit 6f3f563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azalea-auth/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ pub async fn get_profile(
.map_err(|err| {
match err.status() {
Some(reqwest::StatusCode::UNAUTHORIZED) => GetProfileError::TokenNotValid,
Some(reqwest::StatusCode::FORBIDDEN) => GetProfileError::NoMinecraftProfile,
Some(reqwest::StatusCode::NOT_FOUND) => GetProfileError::NoMinecraftProfile,
_ => GetProfileError::Http(err),
}
})?
Expand Down

0 comments on commit 6f3f563

Please sign in to comment.