Skip to content

Commit

Permalink
feat: error messages added
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Jul 1, 2024
1 parent 10f7475 commit 7a28150
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/operator/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,18 @@ async function main(): Promise<void> {
operator.stop()
process.exit(0)
}

process.on('beforeExit', (error) => {
console.log('BEFORE EXIT ERROR: ', error)
})
process.on('exit', (error) => {
console.log('EXIT ERROR: ', error)
})
process.on('uncaughtException', (error) => {
console.log('uncaughtException ERROR: ', error)
})
process.on('unhandledRejection', (error) => {
console.log('unhandledRejection ERROR: ', error)
})
process.on('SIGTERM', () => exit('SIGTERM')).on('SIGINT', () => exit('SIGINT'))
}

Expand Down

0 comments on commit 7a28150

Please sign in to comment.