Improved: General refactoring and code improvements, package
org.apache.ofbiz.common.image. (OFBIZ-9878) Thanks Julian Leichert for reporting and providing the patch. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1818556 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -224,12 +224,7 @@ public class ImageTransform {
|
||||
/* PARSING */
|
||||
try {
|
||||
document = UtilXml.readXmlDocument(new FileInputStream(fileFullPath), fileFullPath);
|
||||
} catch (ParserConfigurationException e) {
|
||||
String errMsg = UtilProperties.getMessage(resource, "ImageTransform.errors_occurred_during_parsing", locale) + " ImageProperties.xml " + e.toString();
|
||||
Debug.logError(errMsg, module);
|
||||
result.put(ModelService.ERROR_MESSAGE, "error");
|
||||
return result;
|
||||
} catch (SAXException e) {
|
||||
} catch (ParserConfigurationException | SAXException e) {
|
||||
String errMsg = UtilProperties.getMessage(resource, "ImageTransform.errors_occurred_during_parsing", locale) + " ImageProperties.xml " + e.toString();
|
||||
Debug.logError(errMsg, module);
|
||||
result.put(ModelService.ERROR_MESSAGE, "error");
|
||||
|
||||
Reference in New Issue
Block a user