We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8edd305 commit d39d9baCopy full SHA for d39d9ba
src/index.ts
@@ -23,15 +23,15 @@ process.on('uncaughtException', (err) => {
23
}
24
});
25
26
-process.on('unhandledRejection', (reason) => {
+process.on('unhandledRejection', (reason, promise) => {
27
if (state.shutdownInProgress) {
28
return;
29
30
31
try {
32
- logger.error({reason}, 'UNHANDLED REJECTION!');
+ logger.error({ reason, promise }, 'UNHANDLED REJECTION!');
33
} catch (ignore) {
34
- console.log('UNHANDLED REJECTION!', reason);
+ console.log('UNHANDLED REJECTION!', reason, promise);
35
} finally {
36
process.exit(1);
37
0 commit comments