svn commit: r934612 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java

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

svn commit: r934612 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java

doogie-3
Author: doogie
Date: Thu Apr 15 22:01:51 2010
New Revision: 934612

URL: http://svn.apache.org/viewvc?rev=934612&view=rev
Log:
When the promo action service has an exception, pass that exception back
up using exception chaining.

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java?rev=934612&r1=934611&r2=934612&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/product/ProductPromoWorker.java Thu Apr 15 22:01:51 2010
@@ -1237,7 +1237,7 @@ public class ProductPromoWorker {
                 actionResult = dispatcher.runSync(serviceName, serviceCtx);
             } catch (GenericServiceException e) {
                 Debug.logError("Error calling promo action service [" + serviceName + "]", module);
-                throw new CartItemModifyException("Error calling promo action service [" + serviceName + "]");
+                throw new CartItemModifyException("Error calling promo action service [" + serviceName + "]", e);
             }
             if (ServiceUtil.isError(actionResult)) {
                 Debug.logError("Error calling promo action service [" + serviceName + "], result is: " + actionResult, module);