Author: chris.laprun(a)jboss.com
Date: 2010-02-22 08:06:28 -0500 (Mon, 22 Feb 2010)
New Revision: 1800
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
Log:
- Slightly improved error reporting.
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-02-22
13:05:53 UTC (rev 1799)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletLifecycle.java 2010-02-22
13:06:28 UTC (rev 1800)
@@ -142,8 +142,9 @@
}
catch (Exception e)
{
- log.error(e.getMessage());
- Object[] args = {e.getMessage()};
+ String message = e.getLocalizedMessage();
+ log.error("Error processing the action: " + message, e);
+ Object[] args = {message};
context.addUIComponentToUpdateByAjax(uicomponent);
throw new MessageException(new
ApplicationMessage("UIPortletLifecycle.msg.process-error", args,
ApplicationMessage.ERROR));
}
Show replies by date