From 963b898c749e4cfa678efd2ab871a3cebecdb3aa Mon Sep 17 00:00:00 2001 From: Rory& Date: Thu, 29 Oct 2026 12:46:53 +0100 Subject: [PATCH] Option to make failing route registration fatal --- src/util/util/lambert-server/Server.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/util/lambert-server/Server.ts b/src/util/util/lambert-server/Server.ts index aec51bcda..a139a8b73 100644 --- a/src/util/util/lambert-server/Server.ts +++ b/src/util/util/lambert-server/Server.ts @@ -74,6 +74,7 @@ export class Server { const err = new Error(`[Server] Failed to register route ${path}: ${error}`); err.stack = (err.stack ?? "") + "\n Inner exception: " + (error).stack!.replaceAll("/:", "/index.ts:"); console.error(err); + if (process.env.ROUTE_REGISTER_FAILURE_IS_FATAL == "true") process.exit(1); } }