From 1554340841e35eb2f0504d8976b7d76577678c1d Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 16 Aug 2014 20:18:37 +0200 Subject: [PATCH] Throw error when upload failes --- assets/js/upload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/upload.js b/assets/js/upload.js index 94d7c13..70a5e6c 100755 --- a/assets/js/upload.js +++ b/assets/js/upload.js @@ -135,6 +135,9 @@ upload = { .html("Server returned the status code " + xhr.status) .show(); + // Throw error + lychee.error("Upload failed. Server returned the status code " + xhr.status + "!", xhr, xhr.responseText); + } // Check if there are file which are not finished