Skip to content

Commit

Permalink
WW-4320 Chains exception to simplify debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszlenart committed Apr 10, 2014
1 parent 5353dfc commit 3414c1b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
*/
package org.apache.struts2.views.java;

import com.opensymphony.xwork2.config.impl.LocatableFactory;
import org.apache.struts2.StrutsException;
import org.apache.struts2.components.template.TemplateRenderingContext;

Expand Down Expand Up @@ -115,11 +116,12 @@ public void renderTag(String tagName, TemplateRenderingContext context) {

TagGenerator gen = (TagGenerator) handlers.get(0);
try {
if (LOG.isTraceEnabled())
if (LOG.isTraceEnabled()) {
LOG.trace("Rendering tag [#0]", tagName);
}
gen.generate();
} catch (IOException ex) {
throw new StrutsException("Unable to write tag: " + tagName);
throw new StrutsException("Unable to write tag: " + tagName, ex);
}
}

Expand Down

0 comments on commit 3414c1b

Please sign in to comment.