Skip to content

Commit 05c1271

Browse files
committed
fix: show handshake and login errors
1 parent 4a81700 commit 05c1271

File tree

1 file changed

+3
-3
lines changed
  • crates/hyperion/src/ingress

1 file changed

+3
-3
lines changed

crates/hyperion/src/ingress/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,8 +485,8 @@ impl Module for IngressModule {
485485

486486
match login_state {
487487
PacketState::Handshake => {
488-
if process_handshake(&mut login_state, &frame).is_err() {
489-
error!("failed to process handshake");
488+
if let Err(e) = process_handshake(&mut login_state, &frame) {
489+
error!("failed to process handshake packet: {e}");
490490
compose.io_buf().shutdown(io_ref, &world);
491491
break;
492492
}
@@ -516,7 +516,7 @@ impl Module for IngressModule {
516516
system,
517517
ign_map,
518518
) {
519-
error!("failed to process login packet");
519+
error!("failed to process login packet: {e}");
520520
let msg = format!(
521521
"§c§lFailed to process login packet:§r\n\n§4{e}§r\n\n§eAre \
522522
you on the right version of Minecraft?§r\n§b(Required: \

0 commit comments

Comments
 (0)