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

[Feature] Include full path to property in errors #146

Open
olee opened this issue Mar 5, 2021 · 0 comments
Open

[Feature] Include full path to property in errors #146

olee opened this issue Mar 5, 2021 · 0 comments

Comments

@olee
Copy link

olee commented Mar 5, 2021

When an error is encountered, we only get a kinda cryptic error message like
Error: [serializr] encountered non primitive value while deserializing '*' properties in property 'someProp'
or
Error: [serializr] this value is not primitive.

It would be really helpful, if serializr could include a path to the property which caused the error like
Error: [serializr] this value is not primitive (path: root.someNested.otherNested.fieldWithError)

As far as I can see, right now there is next to no possibility to find out where an error originated from, except extensive debugging.

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

1 participant