This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git

commit 55043334240eb2a1838e37ea1c8a6e434d328fdf
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Apr 20 11:15:02 2024 -0400

    Better exception message
---
 src/main/java/org/apache/commons/codec/binary/Base64.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/codec/binary/Base64.java 
b/src/main/java/org/apache/commons/codec/binary/Base64.java
index 5f927b05..df72909f 100644
--- a/src/main/java/org/apache/commons/codec/binary/Base64.java
+++ b/src/main/java/org/apache/commons/codec/binary/Base64.java
@@ -676,7 +676,7 @@ public class Base64 extends BaseNCodec {
             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);
         }

Reply via email to