diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-14 13:54:29 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-14 13:54:29 +0100 |
commit | 46a4bfbcff076c0d34b9e209a5f518547b3c5b40 (patch) | |
tree | caefe1ac78afcf379a221f8ba0c222f9dcdf77d3 | |
parent | c26c6ab220c18f3a2a1ecdfdeaeaab2ee723adf8 (diff) | |
download | cheatdb-46a4bfbcff076c0d34b9e209a5f518547b3c5b40.tar.xz |
Fix error not being shown in import meta alert
-rw-r--r-- | app/static/polltask.js | 2 |
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() } |