mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
[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:
parent
2c8ab79a78
commit
26883c2d8c
@ -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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user