# HG changeset patch # User Ludovic Chabant # Date 1416001512 -3600 # Node ID c77062233ba5431d82b0a2e65022b539e596821a # Parent f49fcf9448df03d1e010da9a2aff0da1b40383f8 Update system messages. diff -r f49fcf9448df -r c77062233ba5 piecrust/resources/messages/critical.html --- 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 @@
-

Something critically bad happened, and PieCrust needs to shut down. It's probably our fault.

+

Something critically bad happened, and PieCrust needs to shut down. It’s probably our fault.

-
{{ details }}
-
+{% if details %} +
+ {{ details|safe }} +
+{% endif %} +
-

You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the --debug parameter, append ?!debug to the URL, or initialize the PieCrust object with {'debug'=>true}. On the other hand, to see you custom error pages, set the site/display_errors setting to false.

+

You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the --debug parameter, append ?!debug to the URL, or initialize the PieCrust object with {'debug'=>true}. On the other hand, to see you custom error pages, set the site/display_errors setting to false.

\ No newline at end of file diff -r f49fcf9448df -r c77062233ba5 piecrust/resources/messages/error.html --- a/piecrust/resources/messages/error.html Fri Nov 14 22:44:59 2014 +0100 +++ b/piecrust/resources/messages/error.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,10 +59,16 @@
-
{{ details }}
+ + -
+{% if details %} +
+ {{ details|safe }} +
+{% endif %} +
-

You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the --debug parameter, append ?!debug to the URL, or initialize the PieCrust object with {'debug'=>true}. On the other hand, to see you custom error pages, set the site/display_errors setting to false.

+

You’re seeing this because something wrong happend. To see detailed errors with callstacks, run chef with the --debug parameter, append ?!debug to the URL, or initialize the PieCrust object with {'debug'=>true}. On the other hand, to see you custom error pages, set the site/display_errors setting to false.

\ No newline at end of file diff -r f49fcf9448df -r c77062233ba5 piecrust/resources/messages/error404.html --- a/piecrust/resources/messages/error404.html Fri Nov 14 22:44:59 2014 +0100 +++ b/piecrust/resources/messages/error404.html Fri Nov 14 22:45:12 2014 +0100 @@ -1,7 +1,7 @@ - Can't find the sugar! + Can't find the sugar!