Added what size the rejected packet was (#2645)

This commit is contained in:
ThatDan123 2021-03-15 21:22:10 +00:00 committed by vis2k
parent 386a26c5b7
commit 254a0b929d

View File

@ -93,7 +93,7 @@ protected static bool ValidatePacketSize(ArraySegment<byte> segment, int channel
{
if (segment.Count > Transport.activeTransport.GetMaxPacketSize(channelId))
{
Debug.LogError("NetworkConnection.ValidatePacketSize: cannot send packet larger than " + Transport.activeTransport.GetMaxPacketSize(channelId) + " bytes");
Debug.LogError($"NetworkConnection.ValidatePacketSize: cannot send packet larger than {Transport.activeTransport.GetMaxPacketSize(channelId)} bytes, was {segment.Count} bytes");
return false;
}