IDEMPIERE-1985 Provide error message in unsuccessful processes

This commit is contained in:
jan thielemann 2014-07-11 20:01:44 -05:00
parent 0becee9edb
commit e19be23bc5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

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