From 1bb22691db07ec59de3a8ec15386ed9fc501458a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 22 Jan 2018 03:25:58 +0100 Subject: add error template --- talerdonations/donations/templates/error.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 talerdonations/donations/templates/error.html diff --git a/talerdonations/donations/templates/error.html b/talerdonations/donations/templates/error.html new file mode 100644 index 0000000..0d4bd02 --- /dev/null +++ b/talerdonations/donations/templates/error.html @@ -0,0 +1,22 @@ +{% extends "templates/base.html" %} +{% block main %} +

An Error Occurred

+ +

{{ message }}

+ + {% if status_code %} +

The backend returned status code {{ status_code }}.

+ {% endif %} + + {% if json %} +

Backend Response:

+
{{ json }}
+ {% endif %} + + {% if stack %} +

Stack trace:

+
+    {{ stack }}
+  
+ {% endif %} +{% endblock main %} -- cgit v1.2.3