Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Detailed exceptions when rendering fails.

  • Loading branch information...
commit 6e0185473f6a813dc19282df28eb7fa32b796c7a 1 parent 2684ef6
@johnou johnou authored
View
6 src/java/com/opensymphony/sitemesh/webapp/decorator/BaseWebAppDecorator.java
@@ -32,11 +32,9 @@ public void render(Content content, SiteMeshContext context) {
try {
render(content, webAppContext.getRequest(), webAppContext.getResponse(), webAppContext.getServletContext(), webAppContext);
} catch (IOException e) {
- // TODO: Decent exception handling
- throw new RuntimeException(e.toString());
+ throw new RuntimeException("Unexpected exception during rendering", e);
} catch (ServletException e) {
- // TODO: Decent exception handling
- throw new RuntimeException(e.toString());
+ throw new RuntimeException("Unexpected exception during rendering", e);
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.