From b5a4300bb47520deeaa7686944ba715cbceeab61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alain=20B=C3=A9arez?= Date: Sun, 26 Aug 2018 21:15:38 +0000 Subject: [PATCH] add warning message to help reduce duplicates of bug 60102 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839252 13f79535-47bb-0310-9956-ffa450edef68 --- .../poi/openxml4j/opc/internal/ContentTypeManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentTypeManager.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentTypeManager.java index 26ea1b0c7a..3ddfc78035 100644 --- a/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentTypeManager.java +++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/internal/ContentTypeManager.java @@ -338,8 +338,9 @@ public abstract class ContentTypeManager { */ if (this.container != null && this.container.getPart(partName) != null) { throw new OpenXML4JRuntimeException( - "Rule M2.4 exception : Part \'" + partName + - "\' not found - this error should NEVER happen! If you can provide the triggering file, then please raise a bug at https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file that triggers it, thanks!"); + "Rule M2.4 exception : this error should NEVER happen!\n" + + "Check that your code is closing the open resources in the correct order prior to filing a bug report.\n" + + "If you can provide the triggering file, then please raise a bug at https://bz.apache.org/bugzilla/enter_bug.cgi?product=POI and attach the file that triggers it, thanks!"); } return null; }