Report every failed fetch instead of discarding it

Twenty-four fetch chains ended in an empty catch, which is not error handling
but error deletion: the request fails, nothing renders, nothing is logged, and
the surface sits on Loading forever. That is how the mesh chat's ReferenceError
read as a slow load for as long as it did.
This commit is contained in:
Gmer4Lfe
2026-08-21 09:23:51 -04:00
parent 906375dc23
commit 146be2d0ad
9 changed files with 55 additions and 24 deletions
+2 -2
View File
@@ -2087,7 +2087,7 @@ function vvLoadTokens() {
return fetch('/plugins/varaverk/api/ai.php?action=tokens')
.then(r => r.json())
.then(d => { if (d.ok) { vvTokData = d.tokens; vvRenderTokens(); } })
.catch(() => {});
.catch(e => vvFetchErr('token ledger', e));
}
function vvRenderTokens() {
@@ -2522,7 +2522,7 @@ function vvPollStreams() {
}
vvRenderStreams();
})
.catch(() => {});
.catch(e => vvFetchErr('media streams', e));
}
// An unreachable partner is stated, never folded into the totals as zero. "Nobody is watching