Skip to content

Commit

Permalink
log what went wrong while running precompiled templates
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr committed Nov 19, 2012
1 parent 331d0a7 commit c0c9d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/groovyx/gaelyk/GaelykTemplateServlet.groovy
Expand Up @@ -52,7 +52,7 @@ class GaelykTemplateServlet extends TemplateServlet {
try {
runPrecompiled(getPrecompiledClassName(request), binding, response)
} catch(e){
log("Trying to run precompiled template, got ${e.class.name}")
log("Trying to run precompiled template, got ${e.class.name} caused by ${e.cause ? e.cause : 'nothing'}")
runTemplate(request, response, binding)
}
} catch(FileNotFoundException te){
Expand All @@ -75,7 +75,7 @@ class GaelykTemplateServlet extends TemplateServlet {
try {
runTemplate(request, response, binding)
} catch(e){
log("Trying to run template directly, got ${e.class.name}")
log("Trying to run template directly, got ${e.class.name} caused by ${e.cause ? e.cause : 'nothing'}")
runPrecompiled(getPrecompiledClassName(request), binding, response)
}
} catch(e){
Expand Down

0 comments on commit c0c9d67

Please sign in to comment.