Skip to content

Commit 818c9b4

Browse files
committed
Do not let exception message run off the side of the screen
Placing it separately gives it more focus and makes it wrap so you can actually read it.
1 parent 6ab6f9f commit 818c9b4

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

templates/error.twig

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@
2929
{% if showerrors -%}
3030
<h2>{{'Debug information' | trans}}</h2>
3131
<p>{{'The debug information below may be of interest to the administrator / help desk:' | trans}}</p>
32-
<div class="code-box code-box-content">
33-
<pre>{{ error.exceptionMsg }}<br />{{ error.exceptionTrace }}
34-
</pre>
35-
</div>
32+
<p class="message-box error"><tt>{{ error.exceptionMsg }}</tt></p>
33+
<div class="code-box code-box-content"><pre>{{ error.exceptionTrace }}</pre></div>
3634
{%- endif %}
3735

3836
{# Add error report submit section if we have a valid technical contact. 'errorreportaddress' will only be set if

0 commit comments

Comments
 (0)