Mercurial > piecrust2
annotate build/messages/templates/error.html @ 182:a54d3c0b5f4a
tests: Patch `os.path.exists` and improve patching for `open`.
You can specify additional modules for which to patch `open`.
Also, it was incorrectly updating the opened file, even when it was opened
for read only. Now it only updates the contents if the file was opened for
write, and supports appending to the end.
Last, it supports opening text files in binary mode.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Sun, 04 Jan 2015 14:55:41 -0800 |
parents | 67a1c082d89d |
children | a951cd4ef361 |
rev | line source |
---|---|
123
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 {% extends "default.html" %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 {% block content %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 {{content|safe}} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
6 {% raw %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
7 {% if details %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
8 <div class="error-details"> |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
9 {{ details|safe }} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
10 </div> |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
11 {% endif %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
12 {% endraw %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
13 {% endblock %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
14 |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
15 {% block footer %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
16 {% pcformat 'textile' %} |
137
67a1c082d89d
Fixed outdate information in error messages' footer.
Ludovic Chabant <ludovic@chabant.com>
parents:
123
diff
changeset
|
17 p(note). 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@. |
123
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
18 {% endpcformat %} |
b6f79f23904a
Upgrade system messages to the new folder structure.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
19 {% endblock %} |