Skip to content

Commit 6cd72ae

Browse files
committed
add more loggin to error handlers
1 parent 84138dd commit 6cd72ae

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/run.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,16 @@ if (process.env.FILTER) {
1212
process.env.TZ = 'UTC';
1313

1414
require('urun')(__dirname, options);
15+
16+
17+
process.on('exit', (code) => {
18+
console.log(`About to exit with code: ${code}`);
19+
});
20+
21+
process.on('unhandledRejection', (reason) => {
22+
console.log('unhandledRejection', reason);
23+
});
24+
25+
process.on('uncaughtException', (err) => {
26+
console.log('uncaughtException', err);
27+
});

0 commit comments

Comments
 (0)