Unverified Commit a9c39885 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add console.error before exit on uncaughtException (#6504)

parent 436fc542
...@@ -24,7 +24,8 @@ export function onExit(fn: Function) { ...@@ -24,7 +24,8 @@ export function onExit(fn: Function) {
{ {
event: 'uncaughtException', event: 'uncaughtException',
handler: () => { handler: (error: Error) => {
console.error('Got uncaughtException:', error)
exit() exit()
process.exit(1) process.exit(1)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment