From c9e231c5fcbc01d00ee5cdd4458ece8fcaf6d39c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 20 May 2022 09:25:28 +0300 Subject: Handle errors Implement code to handle errors in the processing of files. --- qc_app/templates/parse_failure.html | 26 ++++++++++++++++++++++++++ qc_app/templates/worker_failure.html | 24 ++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 qc_app/templates/parse_failure.html create mode 100644 qc_app/templates/worker_failure.html (limited to 'qc_app/templates') diff --git a/qc_app/templates/parse_failure.html b/qc_app/templates/parse_failure.html new file mode 100644 index 0000000..31f6be8 --- /dev/null +++ b/qc_app/templates/parse_failure.html @@ -0,0 +1,26 @@ +{%extends "base.html"%} + +{%block title%}Worker Failure{%endblock%} + +{%block contents%} +

Worker Failure

+ +

+ There was an error while parsing your file. +

+ +

+ Please notify the developers of this issue when you encounter it, + providing the information below. +

+ +

Debugging Information

+ + + +{%endblock%} diff --git a/qc_app/templates/worker_failure.html b/qc_app/templates/worker_failure.html new file mode 100644 index 0000000..b65b140 --- /dev/null +++ b/qc_app/templates/worker_failure.html @@ -0,0 +1,24 @@ +{%extends "base.html"%} + +{%block title%}Worker Failure{%endblock%} + +{%block contents%} +

Worker Failure

+ +

+ There was a critical failure launching the job to parse your file. + This is our fault and (probably) has nothing to do with the file you uploaded. +

+ +

+ Please notify the developers of this issue when you encounter it, + providing the link to this page, or the information below. +

+ +

Debugging Information

+ + + +{%endblock%} -- cgit v1.2.3