IDEMPIERE-1985 Provide error message in unsuccessful processes
This commit is contained in:
parent
0becee9edb
commit
e19be23bc5
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue