Skip to content
New issue

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

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

Already on GitHub? # to your account

Better error reporting on bad ioc.yaml #276

Merged
merged 7 commits into from
Feb 7, 2025
Merged

Better error reporting on bad ioc.yaml #276

merged 7 commits into from
Feb 7, 2025

Conversation

gilesknap
Copy link
Member

All code that get's called during deserialisation should wrap any exceptions in ValueError. Pydantic will catch that and collect all ValueErrors, reporting them at the end of the process. If you do not do this the deserialise will abort immediately and only report the last error. This can be very confusing if the original cause of the error happened earlier and is due to missing fields in a referenced objecct.

This PR fixes an issue where JInja renders during deserialise were not wrapping their acceptions.

@gilesknap gilesknap merged commit 03817d9 into main Feb 7, 2025
13 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant