Fixed incorrect exception messages
This commit is contained in:
parent
5a9d99743d
commit
bd403bdb98
@ -80,14 +80,14 @@ public class LengthFieldPrepender extends OneToOneEncoder {
|
||||
case 2:
|
||||
if (length >= 65536) {
|
||||
throw new IllegalArgumentException(
|
||||
"length does not fit into a byte: " + length);
|
||||
"length does not fit into a short integer: " + length);
|
||||
}
|
||||
header.writeShort((short) length);
|
||||
break;
|
||||
case 3:
|
||||
if (length >= 16777216) {
|
||||
throw new IllegalArgumentException(
|
||||
"length does not fit into a byte: " + length);
|
||||
"length does not fit into a medium integer: " + length);
|
||||
}
|
||||
header.writeMedium(length);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user