diff options
| author | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 00:22:28 -0400 |
|---|---|---|
| committer | Michael Foster <savetheinternet@tinyboard.org> | 2013-08-03 00:22:28 -0400 |
| commit | 1d37e81adeea9b2a1bc1028f2bf45b47ac045ec4 (patch) | |
| tree | d4597976f069d51d25768d0fbd16e586947be655 /templates | |
| parent | 62f8ea4813092b42a2cd390a8358ce798d103f40 (diff) | |
Better error handling/displaying with $config['debug'] and $config['verbose_errors']
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/error.html | 18 |
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 |
