aboutsummaryrefslogtreecommitdiff
path: root/qc_app/templates
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-13 15:04:28 -0500
committerFrederick Muriuki Muriithi2024-06-13 15:04:28 -0500
commit68a43dc318fb7d76544d704752f243b9afed7e52 (patch)
tree31d2fd165058a7296bc44567a4a388ab5280d946 /qc_app/templates
parent31fb2794ffd4b17be35a2e122a8c6605aebaf65b (diff)
downloadgn-uploader-68a43dc318fb7d76544d704752f243b9afed7e52.tar.gz
Handle HTTP errors gracefully.
Diffstat (limited to 'qc_app/templates')
-rw-r--r--qc_app/templates/http-error.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/qc_app/templates/http-error.html b/qc_app/templates/http-error.html
new file mode 100644
index 0000000..6a74ae8
--- /dev/null
+++ b/qc_app/templates/http-error.html
@@ -0,0 +1,18 @@
+{%extends "base.html"%}
+
+{%block title%}HTTP Error: {{exc.code}}{%endblock%}
+
+{%block contents%}
+<h1>{{exc.code}}: {{exc.description}}</h1>
+
+<div class="row">
+ <p>
+ You attempted to access {{request_url}} which failed with the following
+ error:
+ </p>
+</div>
+
+<div class="row">
+ <pre>{{trace}}</pre>
+</div>
+{%endblock%}