add error handling to runtime.background messaging (#8949)

This commit is contained in:
Jake Fink 2024-04-27 10:51:43 -04:00 committed by GitHub
parent 6ae086f89a
commit 3282b9b775
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -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();