diff --git a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java index cda54a9546..8e8980a890 100644 --- a/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java +++ b/org.adempiere.base.process/src/org/compiere/process/OrderBatchProcess.java @@ -177,6 +177,10 @@ public class OrderBatchProcess extends SvrProcess order.saveEx(); addLog(0, null, null, order.getDocumentNo() + ": OK"); return true; + } else { + log.warning("Order Process Failed: " + order + " - " + order.getProcessMsg()); + throw new IllegalStateException("Order Process Failed: " + order + " - " + order.getProcessMsg()); + } addLog (0, null, null, order.getDocumentNo() + ": Error " + order.getProcessMsg()); return false;