Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kangjuhyup committed Oct 30, 2024
1 parent 6a25867 commit e96b213
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,14 @@ export const modules = [
const validatedConfig = plainToClass(Enviroments, config, {
enableImplicitConversion: true,
});
console.log(validatedConfig);
const errors = validateSync(validatedConfig);
if (errors.length > 0) {
throw new Error(errors.toString());
errors.map((err) => {
console.error(err);
});
}
console.log(validatedConfig);

return validatedConfig;
},
}),
Expand Down

0 comments on commit e96b213

Please sign in to comment.