mirror of
https://github.com/anand34577/ferrum.git
synced 2026-09-20 17:43:21 +00:00
52424fb3c8
Error responses that aren't the backend's {"error": ...} JSON shape
(reverse-proxy 502/504 HTML pages, non-JSON bodies) fell back to
res.statusText, which is an empty string over HTTP/2 — so every
toast.error(err.message) call rendered a toast with an icon and no text,
in light and dark themes alike. Fall through empty/non-string values to
a generic "Request failed (HTTP <status>)" message instead. Same fix in
the UploadTemplateDialog's raw-fetch path and in the web-demo copies.