aboutsummaryrefslogtreecommitdiff
path: root/uploader/templates/unhandled_exception.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-29 16:04:13 -0500
committerFrederick Muriuki Muriithi2024-08-05 09:52:18 -0500
commite16d7750c9f1e754a3e14a496380de0b014fffe1 (patch)
treec24e12b1381cd61363febfc5bcde165bd8fd0a46 /uploader/templates/unhandled_exception.html
parentd3fd64fb5237febb9628c4ccbd259969327ab2ec (diff)
downloadgn-uploader-e16d7750c9f1e754a3e14a496380de0b014fffe1.tar.gz
Provide a generalised way to handle errors and exceptions.
Diffstat (limited to 'uploader/templates/unhandled_exception.html')
-rw-r--r--uploader/templates/unhandled_exception.html25
1 files changed, 14 insertions, 11 deletions
diff --git a/uploader/templates/unhandled_exception.html b/uploader/templates/unhandled_exception.html
index 6e6a051..d6087cb 100644
--- a/uploader/templates/unhandled_exception.html
+++ b/uploader/templates/unhandled_exception.html
@@ -1,4 +1,5 @@
{%extends "base.html"%}
+{%from "flash_messages.html" import flash_all_messages%}
{%block title%}System Error{%endblock%}
@@ -7,15 +8,17 @@
{%endblock%}
{%block contents%}
-<p>
- An error has occured, and your request has been aborted. Please notify the
- administrator to try and get this sorted.
-</p>
-<p>
- Provide the following information to help the administrator figure out and fix
- the issue:<br />
- <hr /><br />
- {{trace}}
- <hr /><br />
-</p>
+<div class="row">
+ {{flash_all_messages()}}
+ <h1>Exception!</h1>
+
+ <p>An error has occured, and your request has been aborted. Please notify the
+ administrator to try and get this fixed.</p>
+ <p>The system has failed with the following error:</p>
+</div>
+<div class="row">
+ <pre>
+ {{'\n'.join(trace).strip()}}
+ </pre>
+</div>
{%endblock%}