From 11d7dc88c414165cab71fb1466e730e586aa1033 Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 4 Jun 2024 11:10:50 +0100 Subject: [PATCH] Fix ESLint unhandledRejection exit code This is now the default https://github.com/nodejs/node/pull/33021 --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 752a071..504f1a7 100644 --- a/src/index.js +++ b/src/index.js @@ -7,7 +7,7 @@ const logger = createLogger() process.on('unhandledRejection', (error) => { logger.info('Unhandled rejection') logger.error(error) - process.exit(1) + throw error }) async function startServer() {