From e6a3836aab3e16dd2201136d0112d92f0b3356d6 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 14 May 2018 01:20:02 +0100 Subject: Hide all non-TaskError exceptions from users --- app/static/polltask.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/static') diff --git a/app/static/polltask.js b/app/static/polltask.js index bc9d802..8687665 100644 --- a/app/static/polltask.js +++ b/app/static/polltask.js @@ -32,6 +32,8 @@ function pollTask(poll_url, disableTimeout) { if (res.status == "SUCCESS") { console.log("Got result") resolve(res.result) + } else if (res.status == "FAILURE" || res.status == "REVOKED") { + reject() } else { retry() } -- cgit v1.2.3