Skip to content
This repository
Browse code

Detailed exceptions when rendering fails.

  • Loading branch information...
commit 6e0185473f6a813dc19282df28eb7fa32b796c7a 1 parent 2684ef6
Johno Crawford authored June 25, 2011
6  src/java/com/opensymphony/sitemesh/webapp/decorator/BaseWebAppDecorator.java
@@ -32,11 +32,9 @@ public void render(Content content, SiteMeshContext context) {
32 32
         try {
33 33
             render(content, webAppContext.getRequest(), webAppContext.getResponse(), webAppContext.getServletContext(), webAppContext);
34 34
         } catch (IOException e) {
35  
-            // TODO: Decent exception handling
36  
-            throw new RuntimeException(e.toString());
  35
+            throw new RuntimeException("Unexpected exception during rendering", e);
37 36
         } catch (ServletException e) {
38  
-            // TODO: Decent exception handling
39  
-            throw new RuntimeException(e.toString());
  37
+            throw new RuntimeException("Unexpected exception during rendering", e);
40 38
         }
41 39
     }
42 40
 }

0 notes on commit 6e01854

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