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