aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-14 13:54:29 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-14 13:54:29 +0100
commit46a4bfbcff076c0d34b9e209a5f518547b3c5b40 (patch)
treecaefe1ac78afcf379a221f8ba0c222f9dcdf77d3
parentc26c6ab220c18f3a2a1ecdfdeaeaab2ee723adf8 (diff)
downloadcheatdb-46a4bfbcff076c0d34b9e209a5f518547b3c5b40.tar.xz
Fix error not being shown in import meta alert
-rw-r--r--app/static/polltask.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/static/polltask.js b/app/static/polltask.js
index 8687665..18a81a4 100644
--- a/app/static/polltask.js
+++ b/app/static/polltask.js
@@ -33,7 +33,7 @@ function pollTask(poll_url, disableTimeout) {
console.log("Got result")
resolve(res.result)
} else if (res.status == "FAILURE" || res.status == "REVOKED") {
- reject()
+ reject(res.error || "Unknown server error")
} else {
retry()
}