Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

misc: added unhandled rejection handler

Sheen Capadngan045debeaf370
diff --git a/backend/src/main.ts b/backend/src/main.ts
index f06218bc36..d5c54991b4 100644
--- a/backend/src/main.ts
+++ b/backend/src/main.ts
@@ -87,6 +87,10 @@ const run = async () => {
logger.error(error, "CRITICAL ERROR: Uncaught Exception");
});
+ process.on("unhandledRejection", (error) => {
+ logger.error(error, "CRITICAL ERROR: Unhandled Promise Rejection");
+ });
+
await server.listen({
port: envConfig.PORT,
host: envConfig.HOST,