svn commit: r1167551 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1167551 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java

jleroux@apache.org
Author: jleroux
Date: Sat Sep 10 16:03:18 2011
New Revision: 1167551

URL: http://svn.apache.org/viewvc?rev=1167551&view=rev
Log:
A patch from Sam Hamilton "Improvement to error message for ImageManagement " https://issues.apache.org/jira/browse/OFBIZ-4384

A small improvement to the error message generated when the system cannot create a directory.


Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java?rev=1167551&r1=1167550&r2=1167551&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/imagemanagement/ImageManagementServices.java Sat Sep 10 16:03:18 2011
@@ -104,7 +104,7 @@ public class ImageManagementServices {
             if (!rootTargetDir.exists()) {
                 boolean created = rootTargetDir.mkdirs();
                 if (!created) {
-                    String errMsg = "Not create target directory";
+                    String errMsg = "Cannot create the target directory";
                     Debug.logFatal(errMsg, module);
                     return ServiceUtil.returnError(errMsg);
                 }
@@ -187,7 +187,7 @@ public class ImageManagementServices {
             if (!targetDir.exists()) {
                 boolean created = targetDir.mkdirs();
                 if (!created) {
-                    String errMsg = "Not create target directory";
+                    String errMsg = "Cannot create the target directory";
                     Debug.logFatal(errMsg, module);
                     return ServiceUtil.returnError(errMsg);
                 }