Throw error when upload failes

This commit is contained in:
Tobias Reich 2014-08-16 20:18:37 +02:00
parent 24fc218437
commit 1554340841

View File

@ -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