1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-20 23:17:45 +00:00

Add warnings in more lobby fail cases

For example, if your World server is down and no service accounts were
returned.
This commit is contained in:
Joshua Goins 2025-06-18 20:08:35 -04:00
parent 7d6c8a8c14
commit 1b6fdab000

View file

@ -104,6 +104,8 @@ async fn main() {
serde_json::from_str(&body).ok();
if let Some(service_accounts) = service_accounts {
if service_accounts.is_empty() {
tracing::warn!("This account has no service accounts attached, how did this happen?");
// request an update, wrong error message lol
connection.send_error(*sequence, 1012, 13101).await;
} else {
@ -112,6 +114,8 @@ async fn main() {
connection.send_account_list().await;
}
} else {
tracing::warn!("Failed to parse service accounts from the login server!");
// request an update, wrong error message lol
connection.send_error(*sequence, 1012, 13101).await;
}