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 d08aa54e1 Better error message
d08aa54e1 is described below
commit d08aa54e16dda1091e5d0a7b768217c1861d22e5
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 1 10:26:09 2025 -0500
Better error message
---
.../commons/compress/compressors/gzip/GzipCompressorInputStream.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
b/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
index 0e8b77b86..fab11a42f 100644
---
a/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
+++
b/src/main/java/org/apache/commons/compress/compressors/gzip/GzipCompressorInputStream.java
@@ -280,7 +280,7 @@ public class GzipCompressorInputStream extends
CompressorInputStream implements
}
if (magic0 != 31 || in.read() != 139) {
- throw new IOException(isFirstMember ? "Input is not in the .gz
format" : "Garbage after a valid .gz stream");
+ throw new IOException(isFirstMember ? "Input is not in the .gz
format" : "Unexpected data after a valid .gz stream");
}
// Parsing the rest of the header may throw EOFException.