improve error message

This commit is contained in:
2020-01-31 21:02:37 +01:00
parent 63cbfaaf4f
commit ee3829d054
2 changed files with 10 additions and 5 deletions

View File

@@ -152,7 +152,7 @@ UploadManager.prototype.uploadThread = function() {
// Request did not arrive
if (job.tries === 3) { // Upload failed
if (typeof(job.onFailure) === "function") {
job.onFailure(xhr.response, xhr.response);
job.onFailure(xhr.responseText, xhr.responseText);
}
} else { // Try again
job.tries++;