From 26c25621246937ce19af5e995db35c6b2b6c1094 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Mon, 27 Dec 2021 01:10:53 +0100 Subject: [PATCH] upload: improve error message --- client/js/upload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/upload.js b/client/js/upload.js index fb68746d..2b42ed73 100644 --- a/client/js/upload.js +++ b/client/js/upload.js @@ -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})`, }; }