Author: nmalin
Date: Thu Sep 6 18:50:01 2018
New Revision: 1840258
URL:
http://svn.apache.org/viewvc?rev=1840258&view=revLog:
Fixed: Display in log the file location who failed when the ConfigXMLReader throw an exception during the xml parsing
Currently only the Exception is visible that can't help to spot quickly the origin component.
Modified:
ofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java
Modified: ofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java?rev=1840258&r1=1840257&r2=1840258&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/webapp/src/main/java/org/apache/ofbiz/webapp/control/ConfigXMLReader.java Thu Sep 6 18:50:01 2018
@@ -173,7 +173,7 @@ public class ConfigXMLReader {
}
return rootElement;
} catch (Exception e) {
- Debug.logError(e, module);
+ Debug.logError("When read " + (location != null? location.toString(): "empty location (!)") + " threw " + e.toString(), module);
throw new WebAppConfigurationException(e);
}
}