From 801671ed4d07b63fca72eb8a7c6a4eec9be0c54f Mon Sep 17 00:00:00 2001 From: Arda TANRIKULU Date: Mon, 25 Nov 2024 18:10:03 +0300 Subject: [PATCH] Do not catch --- packages/server/src/utils.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/server/src/utils.ts b/packages/server/src/utils.ts index 9ab5dcf6641..ec6dd6b40b4 100644 --- a/packages/server/src/utils.ts +++ b/packages/server/src/utils.ts @@ -674,13 +674,7 @@ function ensureEventListenerForDisposableStacks() { for (const event of terminateEvents) { globalThis.process.once(event, function terminateHandler() { return Promise.allSettled( - [...disposableStacks].map( - stack => - !stack.disposed && - stack.disposeAsync().catch(e => { - console.error('Error while disposing:', e); - }), - ), + [...disposableStacks].map(stack => !stack.disposed && stack.disposeAsync()), ); }); }