diff options
Diffstat (limited to 'talermerchantdemos/templates/survey-error.html.j2')
-rw-r--r-- | talermerchantdemos/templates/survey-error.html.j2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/talermerchantdemos/templates/survey-error.html.j2 b/talermerchantdemos/templates/survey-error.html.j2 new file mode 100644 index 0000000..b2f84f9 --- /dev/null +++ b/talermerchantdemos/templates/survey-error.html.j2 @@ -0,0 +1,24 @@ +{% extends "survey-base.html.j2" %} +{% block main %} + <h1>{{ gettext("Error encountered") }}</h1> + + <p>{{ message }}</p> + + {% if status_code %} + <p> + {{ gettext ("The backend returned status code {code}.").format(code=status_code) }} + </p> + {% endif %} + + {% if json %} + <p>{{gettext("Backend response:")}}</p> + <pre>{{ json }}</pre> + {% endif %} + + {% if stack %} + <p>{{gettext("Stack trace:")}}</p> + <pre> + {{ stack }} + </pre> + {% endif %} +{% endblock main %} |