forked from dachan/dach
1
0
Fork 0
dach/node_modules/pg-pool/test/setup.js

11 lines
194 B
JavaScript

const crash = (reason) => {
process.on(reason, (err) => {
console.error(reason, err.stack)
process.exit(-1)
})
}
crash('unhandledRejection')
crash('uncaughtError')
crash('warning')