upload: improve error message

This commit is contained in:
Reto Brunner 2021-12-27 01:10:53 +01:00
parent 763047889d
commit 26c2562124

View File

@ -208,7 +208,7 @@ class Uploader {
// if there is still data to be uploaded. Servers will only error in extreme cases like bad
// authentication or server-side errors.
response = {
error: `Upload aborted: HTTP ${this.xhr.status}`,
error: `Upload aborted: ${this.xhr.statusText} (HTTP ${this.xhr.status})`,
};
}