summaryrefslogtreecommitdiff
path: root/templates/error.html
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-03 00:22:28 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-03 00:22:28 -0400
commit1d37e81adeea9b2a1bc1028f2bf45b47ac045ec4 (patch)
treed4597976f069d51d25768d0fbd16e586947be655 /templates/error.html
parent62f8ea4813092b42a2cd390a8358ce798d103f40 (diff)
Better error handling/displaying with $config['debug'] and $config['verbose_errors']
Diffstat (limited to 'templates/error.html')
-rw-r--r--templates/error.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/error.html b/templates/error.html
new file mode 100644
index 00000000..3b8eb693
--- /dev/null
+++ b/templates/error.html
@@ -0,0 +1,18 @@
+<div style="text-align:center">
+ <h2 style="margin:20px 0">{{ message }}</h2>
+ {% if board %}
+ <p>
+ <a href="{{ config.root }}{% if mod %}{{ config.file_mod }}?/{% endif %}{{ board.dir }}{{ config.file_index }}">
+ {% trans 'Go back' %}
+ </a>
+ </p>
+ {% endif %}
+</div>
+{% if debug and config.debug %}
+ <hr>
+ <h3>{% trans 'Error information' %}</h3>
+ <pre style="white-space:pre-wrap;font-size: 10px;">
+ {{ debug }}
+ </pre>
+ <hr>
+{% endif %} \ No newline at end of file