diff options
| author | Frederick Muriuki Muriithi | 2022-09-19 08:42:40 +0300 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2022-09-19 08:42:40 +0300 |
| commit | eb0a7c27bcf1ff727bb359766276d643bd4035d7 (patch) | |
| tree | 2ba0f48557af0efc5019a2b3bf111327baf7ac03 /wqflask/wqflask/templates/mapping_error.html | |
| parent | 0ac1cdbaa2aa1a819b2c5f4e28ad26328451e667 (diff) | |
| download | genenetwork2-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.html | 7 |
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 /> - {{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 |
