diff --git a/packages/generators/src/app/templates/index.tpl.ts b/packages/generators/src/app/templates/index.tpl.ts index 72b60e49d7..986bbf68a4 100644 --- a/packages/generators/src/app/templates/index.tpl.ts +++ b/packages/generators/src/app/templates/index.tpl.ts @@ -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(() => {