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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user