NetworkSession: report the zlib error that happened

This commit is contained in:
Dylan K. Taylor 2019-06-06 14:16:04 +01:00
parent 9f0a184a5d
commit 61afc7b62c

View File

@ -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();
} }