Tidy the unhandled exception error page
This commit is contained in:
@@ -7,40 +7,56 @@
|
|||||||
<p>
|
<p>
|
||||||
An unhandled exception was caught during the page template processing. The full details are shown below:
|
An unhandled exception was caught during the page template processing. The full details are shown below:
|
||||||
</p>
|
</p>
|
||||||
<table class="exception-details">
|
<div class="container">
|
||||||
<colgroup id="header">
|
<div class="row">
|
||||||
<col />
|
<div class="span4 column">
|
||||||
</colgroup>
|
<h2>Exception</h2>
|
||||||
<colgroup>
|
</div>
|
||||||
<col />
|
<div class="span11 column">
|
||||||
</colgroup>
|
{$exception_type|escape:html}
|
||||||
<tbody>
|
</div>
|
||||||
<tr>
|
</div>
|
||||||
<th>Exception</th>
|
|
||||||
<td>{$exception_type}</td>
|
<div class="row">
|
||||||
</tr>
|
<div class="span4 column">
|
||||||
<tr>
|
<h2>File</h2>
|
||||||
<th>File</th>
|
</div>
|
||||||
<td>{$exception->getFile()}</td>
|
<div class="span11 column">
|
||||||
</tr>
|
{$exception->getFile()|escape:html}
|
||||||
<tr>
|
</div>
|
||||||
<th>Line</th>
|
</div>
|
||||||
<td>{$exception->getLine()}</td>
|
|
||||||
</tr>
|
<div class="row">
|
||||||
<tr>
|
<div class="span4 column">
|
||||||
<th>Message</th>
|
<h2>Line</h2>
|
||||||
<td>{$exception->getMessage()}</td>
|
</div>
|
||||||
</tr>
|
<div class="span11 column">
|
||||||
<tr>
|
{$exception->getLine()}
|
||||||
<th>Stack Trace</th>
|
</div>
|
||||||
<td><pre>{$exception->getTrace()|print_r}</pre></td>
|
</div>
|
||||||
</tr>
|
|
||||||
</tbody>
|
<div class="row">
|
||||||
</table>
|
<div class="span4 column">
|
||||||
|
<h2>Message</h2>
|
||||||
|
</div>
|
||||||
|
<div class="span11 column">
|
||||||
|
{$exception->getMessage()}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="span4 column">
|
||||||
|
<h2>Stack Trace</h2>
|
||||||
|
</div>
|
||||||
|
<div class="span11 column">
|
||||||
|
{$exception->getTrace()|var_dump}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<em>Note:</em> Exception details should not be displayed on production systems.
|
<em>Note:</em> Exception details should not be displayed on production systems.
|
||||||
Disable the <a href="{$base_uri}admin/settings/key/debug.show_exceptions/"><code>debug.show_exceptions</code></a>
|
Disable the <a href="{$base_uri}admin/tab/settings/"><code>Display Exceptions</code></a>
|
||||||
setting to omit the exception details from this page.
|
setting to omit the exception details from this page.
|
||||||
</p>
|
</p>
|
||||||
{/if}
|
{/if}
|
||||||
Reference in New Issue
Block a user