From cbfc2f1a942720f324148a08ccaa1a21de6bcd89 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 145da18..b2115c7 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 }) /**