Commit 15543408 authored by Tobias Reich's avatar Tobias Reich
Browse files

Throw error when upload failes

parent 24fc2184
...@@ -135,6 +135,9 @@ upload = { ...@@ -135,6 +135,9 @@ upload = {
.html("Server returned the status code " + xhr.status) .html("Server returned the status code " + xhr.status)
.show(); .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 // Check if there are file which are not finished
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment