Skip to content

Commit 5504333

Browse files
committed
Better exception message
1 parent c6c5f11 commit 5504333

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/org/apache/commons/codec/binary

1 file changed

+1
-1
lines changed

src/main/java/org/apache/commons/codec/binary/Base64.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ private Base64(final int lineLength, final byte[] lineSeparator, final byte padd
676676
decodeTable = DECODE_TABLE;
677677
} else {
678678
if (encodeTable.length != ALPHABET_LENGTH) {
679-
throw new IllegalArgumentException("encodeTable must be exactly 64 bytes long");
679+
throw new IllegalArgumentException("encodeTable must have exactly 64 entries.");
680680
}
681681
decodeTable = calculateDecodeTable(encodeTable);
682682
}

0 commit comments

Comments
 (0)