[bug-69618] ZipPackage save should check that intermediate steps succeed

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1924496 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
fanningpj 2025-03-20 11:56:45 +00:00
parent 2c8ab79a78
commit 26883c2d8c

View File

@ -673,7 +673,7 @@ public final class ZipPackage extends OPCPackage {
LOG.atDebug().log("Save content types part");
if (!this.contentTypeManager.save(zos)) {
throw new OpenXML4JRuntimeException(
"Fail to save: content types part");
"Failed to save: content types part");
}
// Save package relationships part.
@ -682,7 +682,7 @@ public final class ZipPackage extends OPCPackage {
PackagingURIHelper.PACKAGE_RELATIONSHIPS_ROOT_PART_NAME,
zos)) {
throw new OpenXML4JRuntimeException(
"Fail to save: package relationships part");
"Failed to save: package relationships part");
}
// Save parts.