From e19be23bc58e28183321f468278dacff8502f3b4 Mon Sep 17 00:00:00 2001 From: jan thielemann Date: Fri, 11 Jul 2014 20:01:44 -0500 Subject: [PATCH] IDEMPIERE-1985 Provide error message in unsuccessful processes --- org.adempiere.base/src/org/adempiere/util/ProcessUtil.java | 2 +- org.adempiere.base/src/org/compiere/process/SvrProcess.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base/src/org/adempiere/util/ProcessUtil.java b/org.adempiere.base/src/org/adempiere/util/ProcessUtil.java index 2ae25b537e..2da83f4d2c 100644 --- a/org.adempiere.base/src/org/adempiere/util/ProcessUtil.java +++ b/org.adempiere.base/src/org/adempiere/util/ProcessUtil.java @@ -269,7 +269,7 @@ public final class ProcessUtil { msg = engine.eval(rule.getScript()).toString(); //transaction should rollback if there are error in process - if ("@Error@".equals(msg)) + if (msg.startsWith("@Error@")) success = false; // Parse Variables diff --git a/org.adempiere.base/src/org/compiere/process/SvrProcess.java b/org.adempiere.base/src/org/compiere/process/SvrProcess.java index 040c7fec7e..2c9c00dffb 100644 --- a/org.adempiere.base/src/org/compiere/process/SvrProcess.java +++ b/org.adempiere.base/src/org/compiere/process/SvrProcess.java @@ -211,7 +211,7 @@ public abstract class SvrProcess implements ProcessCall } //transaction should rollback if there are error in process - if ("@Error@".equals(msg)) + if(msg.startsWith("@Error@")) success = false; if (success)