Merge pull request #4435 from thelounge/bookworm/uploadErr

upload: improve error message
This commit is contained in:
Max Leiter 2021-12-28 02:40:29 -07:00 committed by GitHub
commit acf520bd9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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