Skip to content

Commit

Permalink
Fix error handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley committed Jan 20, 2013
1 parent 8e6befd commit 5d6aa83
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ class TemplateRenderer {
private static class DecodedStackTrace {
final String html
final StackTraceElement rootCause

DecodedStackTrace(String html, StackTraceElement rootCause) {
this.html = html
this.rootCause = rootCause
}
}

protected static DecodedStackTrace decodeStackTrace(Throwable t) {
Expand All @@ -86,7 +91,7 @@ class TemplateRenderer {
}
}

return new DecodedStackTrace(html: html, rootCause: rootCause)
return new DecodedStackTrace(html, rootCause)
}

protected static String renderTemplate(String text, Map context) {
Expand Down

0 comments on commit 5d6aa83

Please sign in to comment.