mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
catch errors from fetchInstance() to resolve test errors
This commit is contained in:
parent
5818a89ba0
commit
dbc82c1efe
1 changed files with 3 additions and 1 deletions
|
@ -65,4 +65,6 @@ export async function fetchInstance(force = false): Promise<Misskey.entities.Met
|
||||||
}
|
}
|
||||||
|
|
||||||
// instance export can be empty sometimes, which causes problems.
|
// instance export can be empty sometimes, which causes problems.
|
||||||
nextTick(() => fetchInstance());
|
await fetchInstance().catch(err => {
|
||||||
|
console.warn('Initial meta fetch failed:', err);
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue