From afd57c7e237c8ac8b011b22b21134131cd9d89f2 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 28 Jan 2026 00:36:54 +0000 Subject: [PATCH] style: format unhandled rejection handler --- src/infra/unhandled-rejections.ts | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/infra/unhandled-rejections.ts b/src/infra/unhandled-rejections.ts index bfaf75548..d186c6a78 100644 --- a/src/infra/unhandled-rejections.ts +++ b/src/infra/unhandled-rejections.ts @@ -14,11 +14,7 @@ const FATAL_ERROR_CODES = new Set([ "ERR_WORKER_INITIALIZATION_FAILED", ]); -const CONFIG_ERROR_CODES = new Set([ - "INVALID_CONFIG", - "MISSING_API_KEY", - "MISSING_CREDENTIALS", -]); +const CONFIG_ERROR_CODES = new Set(["INVALID_CONFIG", "MISSING_API_KEY", "MISSING_CREDENTIALS"]); // Network error codes that indicate transient failures (shouldn't crash the gateway) const TRANSIENT_NETWORK_CODES = new Set([ @@ -145,10 +141,7 @@ export function installUnhandledRejectionHandler(): void { } if (isConfigError(reason)) { - console.error( - "[moltbot] CONFIGURATION ERROR - requires fix:", - formatUncaughtError(reason), - ); + console.error("[moltbot] CONFIGURATION ERROR - requires fix:", formatUncaughtError(reason)); process.exit(1); return; }