Add debugging output

This commit is contained in:
Him188 2019-12-03 12:33:14 +08:00
parent c205bb3fbd
commit b8c2bb7e63

View File

@ -167,7 +167,8 @@ object SubmitPasswordPacket : PacketFactory<SubmitPasswordPacket.LoginResponse,
else -> null
}
else -> null
} ?: error("Unknown length flag: " + flagFront.toUByte().toUHexString() + flagBack.toUByte().toUHexString())
}
?: error("Unknown length flag: " + flagFront.toUByte().toUHexString() + flagBack.toUByte().toUHexString() + ", remaining packet = ${readBytes().toUHexString()}")
)
discardExact(23 + 3)//01 D3 00 01 00 16 00 00 00 01 00 00 00 64 00 00 0D DE 00 09 3A 80 00