Browse Source

* No 500!

master
vvandenb 2 years ago
parent
commit
55c19fbe46
  1. 4
      back/src/main.ts

4
back/src/main.ts

@ -1,4 +1,4 @@
import { InternalServerErrorException, Logger, ValidationPipe } from '@nestjs/common' import { Logger, ValidationPipe } from '@nestjs/common'
import { NestFactory } from '@nestjs/core' import { NestFactory } from '@nestjs/core'
import { AppModule } from './app.module' import { AppModule } from './app.module'
import * as session from 'express-session' import * as session from 'express-session'
@ -45,5 +45,5 @@ async function bootstrap (): Promise<void> {
logger.log(`Application listening on port ${port}`) logger.log(`Application listening on port ${port}`)
} }
bootstrap().catch((e) => { bootstrap().catch((e) => {
throw new InternalServerErrorException(e) console.log('Error!')
}) })

Loading…
Cancel
Save