Skip to content

Commit

Permalink
Better exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Apr 20, 2024
1 parent c6c5f11 commit 5504333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/codec/binary/Base64.java
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ private Base64(final int lineLength, final byte[] lineSeparator, final byte padd
decodeTable = DECODE_TABLE;
} else {
if (encodeTable.length != ALPHABET_LENGTH) {
throw new IllegalArgumentException("encodeTable must be exactly 64 bytes long");
throw new IllegalArgumentException("encodeTable must have exactly 64 entries.");
}
decodeTable = calculateDecodeTable(encodeTable);
}
Expand Down

0 comments on commit 5504333

Please sign in to comment.