svn commit: r565641 - /ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java

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

svn commit: r565641 - /ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java

jonesde
Author: jonesde
Date: Mon Aug 13 23:45:58 2007
New Revision: 565641

URL: http://svn.apache.org/viewvc?view=rev&rev=565641
Log:
Small change for better error message when returnId not found

Modified:
    ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java

Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java?view=diff&rev=565641&r1=565640&r2=565641
==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java Mon Aug 13 23:45:58 2007
@@ -692,7 +692,7 @@
                     Debug.logError(e, errMsg, module);
                 }
 
-                if (UtilValidate.isNotEmpty(returnHeader)) {
+                if (returnHeader != null) {
                     //getting ReturnHeader status
                     statusId = returnHeader.get("statusId").toString();
                     
@@ -829,9 +829,9 @@
                         // NOTE DEJ20070711 this shouldn't happen for current needs, so save for later
                     }
                 } else {
-                    String errMsg = "ReturnId Not Valid: Id not present in Database";
+                    String errMsg = "Return ID [" + returnId + "] Not Found";
                     Debug.logError(errMsg, module);
-                    errorMapList.add(UtilMisc.toMap("reasonCode", "GenericEntityException", "description", errMsg));
+                    errorMapList.add(UtilMisc.toMap("reasonCode", "ReturnIdNotFound", "description", errMsg));
                 }
             }