proxy progress

This commit is contained in:
rusefi 2020-07-08 13:48:26 -04:00
parent 37243cf8a7
commit 12a9d64e31
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ public class BinaryProtocolServer implements BinaryProtocolCommands {
byte[] packet = new byte[length];
int size = in.read(packet);
if (size != packet.length)
throw new IllegalStateException();
throw new IllegalStateException(size + " promised but " + packet.length + " arrived");
int crc = in.readInt();
if (crc != IoHelper.getCrc32(packet))
throw new IllegalStateException("CRC mismatch");