File tree 1 file changed +3
-3
lines changed
crates/hyperion/src/ingress
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -485,8 +485,8 @@ impl Module for IngressModule {
485
485
486
486
match login_state {
487
487
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} " ) ;
490
490
compose. io_buf ( ) . shutdown ( io_ref, & world) ;
491
491
break ;
492
492
}
@@ -516,7 +516,7 @@ impl Module for IngressModule {
516
516
system,
517
517
ign_map,
518
518
) {
519
- error ! ( "failed to process login packet" ) ;
519
+ error ! ( "failed to process login packet: {e} " ) ;
520
520
let msg = format ! (
521
521
"§c§lFailed to process login packet:§r\n \n §4{e}§r\n \n §eAre \
522
522
you on the right version of Minecraft?§r\n §b(Required: \
You can’t perform that action at this time.
0 commit comments