diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/public/js/form.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/public/js/form.js b/src/public/js/form.js index 724fb05..9e926fa 100644 --- a/src/public/js/form.js +++ b/src/public/js/form.js @@ -57,11 +57,12 @@ function actuate(file) { if (xhr.status === 200 || xhr.status === 500) { createDownload(response.file); } - // Display upload error message to the user - document.getElementById('actuate-err').innerText = response.error; - // DEBUG: Print full error if unknown error occurs - if (xhr.status === 500) + if (xhr.status === 500) { + document.getElementById('actuate-err').innerText = response.error; + // DEBUG: Print full error if unknown error occurs console.error(response.error_msg); + } + } return; }; |