mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
NetworkSession: report the zlib error that happened
This commit is contained in:
parent
9f0a184a5d
commit
61afc7b62c
@ -278,7 +278,7 @@ class NetworkSession{
|
|||||||
}catch(\ErrorException $e){
|
}catch(\ErrorException $e){
|
||||||
$this->logger->debug("Failed to decompress packet: " . bin2hex($payload));
|
$this->logger->debug("Failed to decompress packet: " . bin2hex($payload));
|
||||||
//TODO: this isn't incompatible game version if we already established protocol version
|
//TODO: this isn't incompatible game version if we already established protocol version
|
||||||
throw new BadPacketException("Compressed packet batch decode error (incompatible game version?)", 0, $e);
|
throw new BadPacketException("Compressed packet batch decode error: " . $e->getMessage(), 0, $e);
|
||||||
}finally{
|
}finally{
|
||||||
Timings::$playerNetworkReceiveDecompressTimer->stopTiming();
|
Timings::$playerNetworkReceiveDecompressTimer->stopTiming();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user