Option to make failing route registration fatal

This commit is contained in:
Rory& committed 2026-10-29 13:08:30 +01:00
1 parent 5354cfc3c2
commit 963b898c74
1 file changed
+1
+1
View File
@@ -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>error).stack!.replaceAll("/:", "/index.ts:");
console.error(err);
if (process.env.ROUTE_REGISTER_FAILURE_IS_FATAL == "true") process.exit(1);
}
}