Skip to content

Commit 2a81bfa

Browse files
committed
log error before signalling parent
1 parent c201c74 commit 2a81bfa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/wrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ if (cfg.fork) {
3939

4040
// Error handler that displays a notification and logs the stack to stderr:
4141
process.on('uncaughtException', function(err) {
42-
ipc.send({error: err.name, message: err.message})
4342
console.error(err.stack || err)
43+
ipc.send({ error: err.name || 'Error' , message: err.message })
4444
})
4545

4646
// Hook into require() and notify the parent process about required files

0 commit comments

Comments
 (0)