diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java index 07123b22dc..6b4b215518 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/marshallers/ZipPackagePropertiesMarshaller.java @@ -56,7 +56,7 @@ public final class ZipPackagePropertiesMarshaller extends PackagePropertiesMarsh } zos.closeEntry(); } catch (IOException e) { - throw new OpenXML4JException(e.getLocalizedMessage()); + throw new OpenXML4JException(e.getLocalizedMessage(), e); } return true; }