add a throw for silent nest errors

main
Ayush Mukherjee 2 years ago
parent 7c4ff32ffb
commit 82d33d6e07

@ -3,8 +3,12 @@ import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
async function bootstrap() {
try {
const app = await NestFactory.create(AppModule);
app.useGlobalPipes(new ValidationPipe());
await app.listen(3000);
} catch (e) {
throw e;
}
}
bootstrap();

Loading…
Cancel
Save