From b4202bd9e2f1bc31c07bee3326f04591d1a81e92 Mon Sep 17 00:00:00 2001 From: bedhub Date: Wed, 5 Jun 2024 10:03:37 +0200 Subject: [PATCH] Handle async index db initialization errors, fixes tutadb 1805 Errors while initializing the DBFacade are now handled inside DBFacade and re thrown as DBError to prevent uncaught errors. Errors from the event queue are also not reported as uncaught error by EntityClient anymore as they are thrown anyway. --- src/api/worker/EventBusClient.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/api/worker/EventBusClient.ts b/src/api/worker/EventBusClient.ts index 7c3ee87bbca9..97313160598b 100644 --- a/src/api/worker/EventBusClient.ts +++ b/src/api/worker/EventBusClient.ts @@ -558,7 +558,6 @@ export class EventBusClient { await this.processEventBatch(modification) } catch (e) { console.log("ws error while processing event batches", e) - this.listener.onError(e) throw e }