IDEMPIERE-2739 Some exceptions uncaught and hidden in AbstractEventHandler
This commit is contained in:
parent
74e3447857
commit
fad1e4e34b
|
@ -138,7 +138,10 @@ public abstract class AbstractEventHandler implements EventHandler {
|
|||
* @param e
|
||||
*/
|
||||
protected void addError(Event event, Throwable e) {
|
||||
addErrorMessage(event, e.getLocalizedMessage());
|
||||
String msg = e.getLocalizedMessage();
|
||||
if (msg == null)
|
||||
msg = e.toString();
|
||||
addErrorMessage(event, msg);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue