svn commit: r667206 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java

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

svn commit: r667206 - /ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java

sichen
Author: sichen
Date: Thu Jun 12 12:33:23 2008
New Revision: 667206

URL: http://svn.apache.org/viewvc?rev=667206&view=rev
Log:
prevent a cascade of rollbacks when a shipping value could not be obtained

Modified:
    ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java?rev=667206&r1=667205&r2=667206&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/shipment/thirdparty/usps/UspsServices.java Thu Jun 12 12:33:23 2008
@@ -65,7 +65,7 @@
         Double shippableWeight = (Double) context.get("shippableWeight");
         if (shippableWeight.doubleValue() == 0) {
             // TODO: should we return an error, or $0.00 ?
-            return ServiceUtil.returnError("shippableWeight must be greater than 0");
+            return ServiceUtil.returnFailure("shippableWeight must be greater than 0");
         }
 
         // get the origination ZIP