From 9862bfb37f3c478f37c0c3192b19d3e0ddb009b9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 22 Feb 2013 10:05:33 -0500 Subject: [PATCH] IDEMPIERE-372 Improve error messages --- org.adempiere.base/src/org/compiere/model/MCost.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MCost.java b/org.adempiere.base/src/org/compiere/model/MCost.java index 2f369d4e91..2f2a70d533 100644 --- a/org.adempiere.base/src/org/compiere/model/MCost.java +++ b/org.adempiere.base/src/org/compiere/model/MCost.java @@ -1672,7 +1672,7 @@ public class MCost extends X_M_Cost { if (CurrentQty.signum() < 0) { - throw new AverageCostingNegativeQtyException("Product(ID)="+getM_Product_ID()+", Current Qty="+getCurrentQty()+", New Current Qty="+CurrentQty + throw new AverageCostingNegativeQtyException("Product="+getM_Product().getName()+", Current Qty="+getCurrentQty()+", New Current Qty="+CurrentQty +", CostElement="+ce.getName()+", Schema="+getC_AcctSchema().getName()); } }