1
0
mirror of https://git.boykissers.com/pawkey/pawkey-sk.git synced 2025-12-20 04:04:16 +00:00

catch errors from fetchInstance() to resolve test errors

This commit is contained in:
Hazelnoot
2025-05-30 15:03:19 -04:00
parent 5818a89ba0
commit dbc82c1efe

View File

@@ -65,4 +65,6 @@ export async function fetchInstance(force = false): Promise<Misskey.entities.Met
}
// instance export can be empty sometimes, which causes problems.
nextTick(() => fetchInstance());
await fetchInstance().catch(err => {
console.warn('Initial meta fetch failed:', err);
});