Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support collection of errors in a single pass #43

Open
shawalli opened this issue Nov 14, 2024 · 1 comment
Open

feat: Support collection of errors in a single pass #43

shawalli opened this issue Nov 14, 2024 · 1 comment

Comments

@shawalli
Copy link

shawalli commented Nov 14, 2024

Unless I'm missing a configuration, it seems as if conf errors out when it hits the first error in parsing. For example, the first required field it processes that does not have a value provided by the host causes it to immediately error out. There could be other parsing errors that come afterward that are not presented to the caller that can only be discovered by fixing the first failure, re-running, fixing the next failure, re-running, rinse and repeat.

It would be helpful (and more efficient!) to collect all non-fatal errors during parsing and then present them to the caller at the end of parsing. Doing so would enable the caller to fix all errors at once instead of one at a time.

@ardan-bkennedy
Copy link
Collaborator

I'm not sure adding this complexity is worth it. This has never been a problem for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants