Skip to content

Commit

Permalink
fix(generators): Properly log unhandled rejection (#3149)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl committed Apr 5, 2023
1 parent 0137b40 commit eda8f78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/generators/src/app/templates/index.tpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { logger } from './logger'
const port = app.get('port')
const host = app.get('host')
process.on('unhandledRejection', (reason, p) =>
logger.error('Unhandled Rejection at: Promise ', p, reason)
process.on('unhandledRejection', (reason) =>
logger.error('Unhandled Rejection %O', reason)
)
app.listen(port).then(() => {
Expand Down

0 comments on commit eda8f78

Please sign in to comment.