From 0453b7ac5359a3be834d643b0ecd2227e4b2d7ec Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 4 Oct 2025 09:38:34 +0000 Subject: [PATCH] xhrchk: generic error only as fallback --- copyparty/web/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/web/util.js b/copyparty/web/util.js index 0f8d42da..ee8e5b98 100644 --- a/copyparty/web/util.js +++ b/copyparty/web/util.js @@ -2298,9 +2298,6 @@ function xhrchk(xhr, prefix, e404, lvl, tag) { if (xhr.status == 404) return toast.err(0, prefix + e404 + suf, tag); - if (XC_CMSG[xhr.status]) - errtxt = XC_CMSG[xhr.status]; - if (!xhr.status && !errtxt) return toast.err(0, prefix + L.xhr0); @@ -2319,5 +2316,8 @@ function xhrchk(xhr, prefix, e404, lvl, tag) { document.body.appendChild(fr); } + if (XC_CMSG[xhr.status] && (errtxt.indexOf('