Mercurial > piecrust2
diff piecrust/resources/messages/critical.html @ 125:c77062233ba5
Update system messages.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Fri, 14 Nov 2014 22:45:12 +0100 |
parents | f485ba500df3 |
children | 67a1c082d89d |
line wrap: on
line diff
--- a/piecrust/resources/messages/critical.html Fri Nov 14 22:44:59 2014 +0100 +++ b/piecrust/resources/messages/critical.html Fri Nov 14 22:45:12 2014 +0100 @@ -41,6 +41,9 @@ #content { margin: 2em 1em; } + .error-details { + color: #d11; + } .note { margin: 3em; color: #888; @@ -56,12 +59,16 @@ </div> <hr /> <div id="content"> - <p>Something critically bad happened, and <strong>PieCrust</strong> needs to shut down. It's probably our fault.</p> + <p>Something critically bad happened, and <strong>PieCrust</strong> needs to shut down. It’s probably our fault.</p> -<div id="error-details">{{ details }}</div> - </div> +{% if details %} +<div class="error-details"> + {{ details|safe }} +</div> +{% endif %} + </div> <hr /> - <p class="note">You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the <code>--debug</code> parameter, append <code>?!debug</code> to the <span class="caps">URL</span>, or initialize the <code>PieCrust</code> object with <code>{'debug'=>true}</code>. On the other hand, to see you custom error pages, set the <code>site/display_errors</code> setting to <code>false</code>.</p> </div> + <p class="note">You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the <code>--debug</code> parameter, append <code>?!debug</code> to the <span class="caps">URL</span>, or initialize the <code>PieCrust</code> object with <code>{'debug'=>true}</code>. On the other hand, to see you custom error pages, set the <code>site/display_errors</code> setting to <code>false</code>.</p> </div> </body> </html> \ No newline at end of file