about summary refs log tree commit diff
path: root/wqflask/wqflask/templates/mapping_error.html
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-19 08:42:40 +0300
committerFrederick Muriuki Muriithi2022-09-19 08:42:40 +0300
commiteb0a7c27bcf1ff727bb359766276d643bd4035d7 (patch)
tree2ba0f48557af0efc5019a2b3bf111327baf7ac03 /wqflask/wqflask/templates/mapping_error.html
parent0ac1cdbaa2aa1a819b2c5f4e28ad26328451e667 (diff)
downloadgenenetwork2-eb0a7c27bcf1ff727bb359766276d643bd4035d7.tar.gz
Improve error reporting for no mapping results
* wqflask/wqflask/marker_regression/exceptions.py: new
  NoMappingResultsError exception
* wqflask/wqflask/templates/mapping_error.html: reword display of the
  errors
* wqflask/wqflask/views.py: Raise the NoMappingResultsError exception
  in the case where there are no results for the mapping.
Diffstat (limited to 'wqflask/wqflask/templates/mapping_error.html')
-rw-r--r--wqflask/wqflask/templates/mapping_error.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/mapping_error.html b/wqflask/wqflask/templates/mapping_error.html
index 963bf7d6..8364af3c 100644
--- a/wqflask/wqflask/templates/mapping_error.html
+++ b/wqflask/wqflask/templates/mapping_error.html
@@ -9,7 +9,12 @@
     {%if error:%}
     <p>
       The following error was raised<br /><br />
-      &nbsp;&nbsp;&nbsp;&nbsp;{{error.args[0]}}<br /><br />
+      <dl>
+	<dt>Error message</dt>
+	<dd>{{error.args[0]}}</dd>
+	<dt>Error Type</dt>
+	<dd>{{error_type}}</dd>
+      </dl>
     </p>
     <p>
       Please contact Zach Sloan (zachary.a.sloan@gmail.com) or Arthur Centeno