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-fileupload.git
commit d0c1e272814dddbbffd3babd6ab7152ecccae7bc Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Thu Apr 6 12:07:54 2023 -0400 Track exception cause --- src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java b/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java index 3c6a568..ad35d39 100644 --- a/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java +++ b/src/main/java/org/apache/commons/fileupload2/disk/DiskFileItem.java @@ -567,7 +567,7 @@ public class DiskFileItem implements FileItem { try (OutputStream fout = Files.newOutputStream(file.toPath())) { fout.write(get()); } catch (final IOException e) { - throw new IOException("Unexpected output data"); + throw new IOException("Unexpected output data", e); } } else { final File outputFile = getStoreLocation();