Skip to content

Commit

Permalink
re-throw error to get it to show
Browse files Browse the repository at this point in the history
There are some more edgecases :(

You have to rethrow the error in the uncaught listener for it to actually print.
  • Loading branch information
Raynos authored and James Halliday committed Jun 9, 2013
1 parent 261596c commit a51e872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function createExitHarness (conf) {

process.on('uncaughtException', function (err) {
_error = err

throw err
})

process.on('exit', function (code) {
Expand Down

0 comments on commit a51e872

Please sign in to comment.