Add console.error before exit on uncaughtException (#6504)
This commit is contained in:
parent
436fc54212
commit
a9c398854a
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ export function onExit(fn: Function) {
|
|||
|
||||
{
|
||||
event: 'uncaughtException',
|
||||
handler: () => {
|
||||
handler: (error: Error) => {
|
||||
console.error('Got uncaughtException:', error)
|
||||
exit()
|
||||
process.exit(1)
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue