This repository was archived by the owner on Mar 10, 2025. It is now read-only.
File tree 1 file changed +4
-4
lines changed
grails-web-gsp-taglib/src/main/groovy/org/grails/plugins/web/taglib
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class RenderTagLib implements TagLibrary {
76
76
def currentOut = out
77
77
int statusCode = request. getAttribute(' javax.servlet.error.status_code' ) as int
78
78
currentOut << """ <h1>Error ${ prettyPrintStatus(statusCode)} </h1>
79
- <dl class="error-details">
79
+ <dl class="${ attrs['detailsClass'] ?: ' error-details' } ">
80
80
<dt>URI</dt><dd>${ htmlEncoder.encode(WebUtils.getForwardURI(request) ?: request.getAttribute('javax.servlet.error.request_uri'))} </dd>
81
81
"""
82
82
@@ -88,12 +88,12 @@ class RenderTagLib implements TagLibrary {
88
88
}
89
89
currentOut << " </dl>"
90
90
91
- currentOut << errorsViewStackTracePrinter. prettyPrintCodeSnippet(exception)
91
+ currentOut << errorsViewStackTracePrinter. prettyPrintCodeSnippet(exception, attrs )
92
92
93
- def trace = errorsViewStackTracePrinter. prettyPrint(exception. cause ?: exception)
93
+ def trace = errorsViewStackTracePrinter. prettyPrint(exception. cause ?: exception, attrs )
94
94
if (StringUtils . hasText(trace. trim())) {
95
95
currentOut << " <h2>Trace</h2>"
96
- currentOut << ' <pre class="stack"> '
96
+ currentOut << """ <pre class="${ attrs['stackClass'] ?: ' stack' } "> """
97
97
currentOut << htmlEncoder. encode(trace)
98
98
currentOut << ' </pre>'
99
99
}
You can’t perform that action at this time.
0 commit comments