#2464: Improve information about missing packet IDs

This commit is contained in:
NayXegp 2018-07-15 11:58:10 +02:00 committed by md_5
parent 5cdb181cc5
commit 0a95af5dc1

View File

@ -461,7 +461,7 @@ public enum Protocol
{ {
throw new BadPacketException( "Unsupported protocol version" ); throw new BadPacketException( "Unsupported protocol version" );
} }
Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet " + packet ); Preconditions.checkArgument( protocolData.packetMap.containsKey( packet ), "Cannot get ID for packet %s in phase %s with direction %s", packet, protocolPhase, direction );
return protocolData.packetMap.get( packet ); return protocolData.packetMap.get( packet );
} }