Skip to content

Commit

Permalink
chore: handle errors from initJpDict
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed May 25, 2023
1 parent a40b32c commit 2a02764
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/background/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ async function initJpDict() {
}

Bugsnag.leaveBreadcrumb('Running initJpDict from startup...');
initJpDict();
initJpDict().catch((e) => {
console.error(e);
void Bugsnag.notify(e);
});

async function onDbStatusUpdated(state: JpdictStateWithFallback) {
jpdictState = state;
Expand Down

0 comments on commit 2a02764

Please sign in to comment.