add error handling to runtime.background messaging (#8949)
This commit is contained in:
parent
6ae086f89a
commit
3282b9b775
|
@ -85,7 +85,11 @@ export default class RuntimeBackground {
|
|||
this.messageListener.allMessages$
|
||||
.pipe(
|
||||
mergeMap(async (message: any) => {
|
||||
try {
|
||||
await this.processMessage(message);
|
||||
} catch (err) {
|
||||
this.logService.error(err);
|
||||
}
|
||||
}),
|
||||
)
|
||||
.subscribe();
|
||||
|
|
Loading…
Reference in New Issue