File: setup.js

package info (click to toggle)
node-postgres 8.16.3%2B~cs35.24.27-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,772 kB
  • sloc: javascript: 15,879; python: 79; makefile: 57
file content (10 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
const crash = (reason) => {
  process.on(reason, (err) => {
    console.error(reason, err.stack)
    process.exit(-1)
  })
}

crash('unhandledRejection')
crash('uncaughtError')
crash('warning')