summaryrefslogtreecommitdiffstats
path: root/templates/error.html
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-09-29 00:23:30 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-09-29 00:23:30 +0200
commitc3ee743c756d7da7a1fab40584575fed642858a8 (patch)
tree3f7221231ba9501710e1e830ddf92c882117084e /templates/error.html
parent220941cad39f1d0e5d75c219e62ec11d9ec0799b (diff)
downloadweb-c3ee743c756d7da7a1fab40584575fed642858a8.tar.gz
web-c3ee743c756d7da7a1fab40584575fed642858a8.tar.bz2
web-c3ee743c756d7da7a1fab40584575fed642858a8.zip
use errorhandler for HTTP status error codes
with this we can use our base layout to display pretty error messages
Diffstat (limited to 'templates/error.html')
-rw-r--r--templates/error.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/error.html b/templates/error.html
new file mode 100644
index 0000000..b025572
--- /dev/null
+++ b/templates/error.html
@@ -0,0 +1,8 @@
+{%- extends 'base.html' %}
+{%- from '_macros.html' import render_field %}
+{%- block content %}
+
+<h1>{{error.message}}</h1>
+<p><b>Fehler</b>: {{error.description}}</p>
+
+{%- endblock %}