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-compress.git

commit 4606480589dd12232e2a6e2f16c1dd996febe606
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Aug 27 14:52:47 2025 -0400

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

diff --git 
a/src/main/java/org/apache/commons/compress/MemoryLimitException.java 
b/src/main/java/org/apache/commons/compress/MemoryLimitException.java
index 5a4a1591e..727be8cfb 100644
--- a/src/main/java/org/apache/commons/compress/MemoryLimitException.java
+++ b/src/main/java/org/apache/commons/compress/MemoryLimitException.java
@@ -34,7 +34,7 @@ public class MemoryLimitException extends CompressException {
     private static final long serialVersionUID = 1L;
 
     private static String buildMessage(final long memoryNeeded, final long 
memoryLimit, final String scale, final String boundary) {
-        return String.format("%,d %s of memory requested; %s set is %,d %s. If 
the file is not corrupt, consider increasing the memory limit.", memoryNeeded,
+        return String.format("%,d %s of memory requested; %s is %,d %s. If the 
file is not corrupt, consider increasing the memory limit.", memoryNeeded,
                 scale, boundary, memoryLimit, scale);
     }
 

Reply via email to