Skip to content

Commit a51e872

Browse files
RaynosJames Halliday
authored and
James Halliday
committedJun 9, 2013
re-throw error to get it to show
There are some more edgecases :( You have to rethrow the error in the uncaught listener for it to actually print.
1 parent 261596c commit a51e872

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎index.js

+2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ function createExitHarness (conf) {
4747

4848
process.on('uncaughtException', function (err) {
4949
_error = err
50+
51+
throw err
5052
})
5153

5254
process.on('exit', function (code) {

0 commit comments

Comments
 (0)
Please sign in to comment.