You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2010/04/16 00:01:51 UTC

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

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);