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

Include location information in exception toString() #36

Closed
Vampire opened this issue Aug 25, 2020 · 1 comment
Closed

Include location information in exception toString() #36

Vampire opened this issue Aug 25, 2020 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@Vampire
Copy link

Vampire commented Aug 25, 2020

If you have some exception like com.charleskorn.kaml.UnexpectedNullValueException: Unexpected null or empty value for non-null field. this is not too informative about where the problem is in the data. The exception carries the location information but it is not shown anywhwere by default. Would be nice it would for example be automatically added to the message like com.charleskorn.kaml.UnexpectedNullValueException: Unexpected null or empty value for non-null field. [1234:53]

@charleskorn charleskorn changed the title Add location information to exception messages Include location information in exception toString() Aug 25, 2020
@charleskorn
Copy link
Owner

Hey @Vampire, good point, I'll add that.

@charleskorn charleskorn added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed enhancement New feature or request and removed bug Something isn't working labels Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants