Skip to content

Commit

Permalink
add error handling to runtime.background messaging (#8949)
Browse files Browse the repository at this point in the history
  • Loading branch information
jlf0dev committed Apr 27, 2024
1 parent 6ae086f commit 3282b9b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/browser/src/background/runtime.background.ts
Expand Up @@ -85,7 +85,11 @@ export default class RuntimeBackground {
this.messageListener.allMessages$
.pipe(
mergeMap(async (message: any) => {
await this.processMessage(message);
try {
await this.processMessage(message);
} catch (err) {
this.logService.error(err);
}
}),
)
.subscribe();
Expand Down

0 comments on commit 3282b9b

Please sign in to comment.