Skip to content

Instantly share code, notes, and snippets.

@msacar
Created August 29, 2021 12:22
Show Gist options
  • Save msacar/028ddcc9ef466dd9a847dfaf03a14f02 to your computer and use it in GitHub Desktop.
Save msacar/028ddcc9ef466dd9a847dfaf03a14f02 to your computer and use it in GitHub Desktop.
process.on('unhandledRejection', (reason, promise) => {
console.log('Unhandled Rejection:', promise, `${err.message} ${err.stack}`)
process.exit(1)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment