feat: improve packet::parse tracing

This commit is contained in:
Tamipes 2025-12-06 20:18:54 +01:00
parent 7461b8ea30
commit f1c1b2c122
3 changed files with 41 additions and 17 deletions

View file

@ -89,7 +89,7 @@ async fn process_connection(
}
handshake = packets::serverbound::handshake::Handshake::parse(client_packet)
.await
.ok_or_else(|| "handshake request from client failed to parse".to_string())?;
.ok_or_else(|| "Client HANDSHAKE -> malformed packet; Disconnecting...".to_string())?;
next_server_state = handshake.get_next_state();