feat: improve packet::parse tracing
This commit is contained in:
parent
7461b8ea30
commit
f1c1b2c122
3 changed files with 41 additions and 17 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue