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:
@@ -1274,7 +1274,7 @@ function vvPtLoad() {
|
||||
fetch('/plugins/varaverk/api/partnership.php')
|
||||
.then(r => r.json())
|
||||
.then(_render)
|
||||
.catch(() => {});
|
||||
.catch(e => vvFetchErr('partnership status', e));
|
||||
}
|
||||
|
||||
_vvPtReload = vvPtLoad; // expose to top-level toggle fns
|
||||
|
||||
Reference in New Issue
Block a user