Clarify error message

This commit is contained in:
Andrew Steinborn
2019-06-12 00:43:30 -04:00
parent 5fa5d9567d
commit cc6d060fc5

View File

@@ -33,7 +33,7 @@ public class MinecraftCompressDecoder extends MessageToMessageDecoder<ByteBuf> {
return;
}
checkFrame(expectedSize >= threshold, "Uncompressed size %s is greater than threshold %s",
checkFrame(expectedSize >= threshold, "Uncompressed size %s is less than threshold %s",
expectedSize, threshold);
checkFrame(expectedSize <= MAXIMUM_UNCOMPRESSED_SIZE, "Expected uncompressed size"
+ "%s is larger than protocol maximum of %s", expectedSize, MAXIMUM_UNCOMPRESSED_SIZE);