mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
misc: added unhandled rejection handler
This commit is contained in:
@@ -87,6 +87,10 @@ const run = async () => {
|
|||||||
logger.error(error, "CRITICAL ERROR: Uncaught Exception");
|
logger.error(error, "CRITICAL ERROR: Uncaught Exception");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
process.on("unhandledRejection", (error) => {
|
||||||
|
logger.error(error, "CRITICAL ERROR: Unhandled Promise Rejection");
|
||||||
|
});
|
||||||
|
|
||||||
await server.listen({
|
await server.listen({
|
||||||
port: envConfig.PORT,
|
port: envConfig.PORT,
|
||||||
host: envConfig.HOST,
|
host: envConfig.HOST,
|
||||||
|
|||||||
Reference in New Issue
Block a user