We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f04f3ba commit 8dbb5f2Copy full SHA for 8dbb5f2
src/pterodactyl/whitelist.rs
@@ -126,8 +126,16 @@ async fn whitelist_add(
126
.header("Content-Type", "application/json")
127
.json(&vec![player_name])
128
.send()
129
- .await?
130
- .error_for_status()?;
+ .await?;
+ if !response.status().is_success() {
131
+ let status = response.status();
132
+ error!(
133
+ "Failed to request UUID: {}, {}",
134
+ status,
135
+ response.text().await?
136
+ );
137
+ return Ok(());
138
+ }
139
140
#[derive(Deserialize)]
141
struct MojangPlayer {
0 commit comments