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


The following commit(s) were added to refs/heads/master by this push:
     new 1ececae1b Fix exception message to reflect kibibytes scale
1ececae1b is described below

commit 1ececae1bd9b683cc70ff7a6416f74ddd4675219
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Jan 4 10:16:19 2025 -0500

    Fix exception message to reflect kibibytes scale
---
 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 c637f458d..7e3026c6a 100644
--- a/src/main/java/org/apache/commons/compress/MemoryLimitException.java
+++ b/src/main/java/org/apache/commons/compress/MemoryLimitException.java
@@ -31,7 +31,7 @@ public class MemoryLimitException extends IOException {
     private static final long serialVersionUID = 1L;
 
     private static String buildMessage(final long memoryNeededInKb, final int 
memoryLimitInKb) {
-        return String.format("%,d Kb of memory would be needed; limit was %,d 
Kb. If the file is not corrupt, consider increasing the memory limit.",
+        return String.format("%,d KiB of memory would be needed; limit was %,d 
KiB. If the file is not corrupt, consider increasing the memory limit.",
                 memoryNeededInKb, memoryLimitInKb);
     }
 

Reply via email to