You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[ ] Feature request
[X] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Having errors catchable to be able to reformat them, or at least having them in NestJS exception format (for example like @nestjs/typeorm errors).
Or maybe just use Nest's logger to throw errors? I am working on it in fork :)
I'm submitting a...
Current behavior
I setuped configuration validation as described in documentation of NestJS: https://docs.nestjs.com/techniques/configuration#schema-validation
Validation works as expected, but when my .env file is not valid, I am getting plain error, for example:
Error: Config validation error: "FOO_BAR" is required at Function.forRoot (@nestjs\config\dist\config.module.js:44:27)
This error is not thrown by Nest so approach with globalFilter what can catch every Nest error not work: https://docs.nestjs.com/websockets/exception-filters#exception-filters
Can this be described in documentation?
The text was updated successfully, but these errors were encountered: