fix rendering exception stack traces
This commit is contained in:
parent
7cd5e43141
commit
99302e72fc
@ -1,5 +1,4 @@
|
||||
{% if exception.trace|length %}
|
||||
<pre class="stacktrace">
|
||||
{{ exception.class }}:
|
||||
{% if exception.message is not empty %}
|
||||
{{- exception.message }}
|
||||
@ -8,5 +7,4 @@
|
||||
{% for trace in exception.trace %}
|
||||
{{ include('@Twig/Exception/trace.txt.twig', { trace: trace }, with_context = false) }}
|
||||
{% endfor %}
|
||||
</pre>
|
||||
{% endif %}
|
||||
|
@ -17,7 +17,13 @@
|
||||
<tbody id="trace-text-{{ index }}">
|
||||
<tr>
|
||||
<td>
|
||||
{{ include('@Twig/Exception/traces.txt.twig', { exception: exception }, with_context = false) }}
|
||||
{% if exception.trace|length %}
|
||||
<pre class="stacktrace">
|
||||
{%- filter escape('html') -%}
|
||||
{{- include('@Twig/Exception/traces.txt.twig', { exception: exception, format: 'html' }, with_context = false) }}
|
||||
{% endfilter %}
|
||||
</pre>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
Reference in New Issue
Block a user