Skip to content
Browse files

Detailed exceptions when rendering fails.

  • Loading branch information...
1 parent 2684ef6 commit 6e0185473f6a813dc19282df28eb7fa32b796c7a @johnou johnou committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/java/com/opensymphony/sitemesh/webapp/decorator/BaseWebAppDecorator.java
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);
}
}
}

0 comments on commit 6e01854

Please sign in to comment.
Something went wrong with that request. Please try again.