[OFBiz] SVN: r5625 - trunk/framework/common/src/org/ofbiz/common

jonesde at svn.ofbiz.org jonesde at svn.ofbiz.org
Thu Sep 1 21:14:18 EDT 2005


Author: jonesde
Date: 2005-09-01 20:14:14 -0500 (Thu, 01 Sep 2005)
New Revision: 5625

Modified:
   trunk/framework/common/src/org/ofbiz/common/FindServices.java
Log:
Small message improvements, formatting cleanups

Modified: trunk/framework/common/src/org/ofbiz/common/FindServices.java
===================================================================
--- trunk/framework/common/src/org/ofbiz/common/FindServices.java	2005-09-02 01:12:48 UTC (rev 5624)
+++ trunk/framework/common/src/org/ofbiz/common/FindServices.java	2005-09-02 01:14:14 UTC (rev 5625)
@@ -204,6 +204,7 @@
         }
         return normalizedFields;
     }
+    
     /**
      * createCondition, comparing the normalizedFields with the list of keys, .
      *
@@ -435,13 +436,13 @@
         results.put("entityConditionList", exprList);
         return results;
     }
+
     /**
      * executeFind
      *
      * This is a generic method that returns an EntityListIterator.
      */
     public static Map executeFind(DispatchContext dctx, Map context) {
-
         String entityName = (String)context.get("entityName");
         EntityConditionList exprList = (EntityConditionList)context.get("entityConditionList");
         List orderByList = (List)context.get("orderByList");
@@ -454,7 +455,7 @@
             listIt = delegator.findListIteratorByCondition(entityName, exprList,
                     null, null, orderByList, new EntityFindOptions(true, EntityFindOptions.TYPE_SCROLL_INSENSITIVE, EntityFindOptions.CONCUR_READ_ONLY, false));
         } catch (GenericEntityException e) {
-            return ServiceUtil.returnError("Error finding iterator: " + e.getMessage());
+            return ServiceUtil.returnError("Error running Find on the [" + entityName + "] entity: " + e.getMessage());
         }
 
         Map results = ServiceUtil.returnSuccess();



More information about the Svn mailing list