Hide all non-TaskError exceptions from users

This commit is contained in:
rubenwardy
2018-05-14 01:20:02 +01:00
parent 73fa5d1186
commit e6a3836aab
5 changed files with 20 additions and 12 deletions

View File

@@ -5,10 +5,10 @@ Working
{% endblock %}
{% block content %}
{% if "error" in info %}
{% if "error" in info or info.status == "FAILURE" or info.status == "REVOKED" %}
<h1>Task Failed</h1>
<p>{{ info. error }}</p>
<pre>{{ info.error }}</pre>
{% else %}
<h1>Working…</h1>