diff --git a/index.js b/index.js index c118c40..9ccf385 100644 --- a/index.js +++ b/index.js @@ -242,7 +242,7 @@ process.on('unhandledRejection', error => { process.on('uncaughtException', error => { log.info('Caught exception', error); - processManager.shutdown({ error, force: true }); + processManager.shutdown({ error }); }); /** diff --git a/test/index.test.js b/test/index.test.js index 2bfcd08..4de1210 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -482,7 +482,7 @@ describe('ProcessManager', () => { const error = new Error(); process.once('uncaughtException', () => { - expect(processManager.shutdown).toBeCalledWith({ error, force: true }); + expect(processManager.shutdown).toBeCalledWith({ error }); done(); });