Add a stack trace to the 500 page in dev mode

This commit is contained in:
Rowan Manning
2013-09-27 15:13:21 +01:00
parent d30dc04319
commit 4f38eaecc4
2 changed files with 7 additions and 2 deletions

View File

@@ -2,8 +2,10 @@
<h1>Eeek! 500 error. This is serious.</h1>
<p class="h2">There isn't much you can do about this.</h2>
<p class="h4">Give it another go or try the <a href="/">home page</a>.</h4>
<p>Techy-stuff</p>
<pre>&lt;p&gt;Sample text here...&lt;/p&gt;</pre>
{{#if error}}
<h2>Stack-Trace</h2>
<pre>{{error.stack}}</pre>
{{/if}}
</div>
<div class="col-md-4">
<div class="well well-lg">