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

This commit is contained in:
JJ Kasper 2019-03-01 13:18:33 -06:00 committed by GitHub
parent 436fc54212
commit a9c398854a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,8 @@ export function onExit(fn: Function) {
{
event: 'uncaughtException',
handler: () => {
handler: (error: Error) => {
console.error('Got uncaughtException:', error)
exit()
process.exit(1)
},