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

Improve error messages #18

Merged
merged 15 commits into from
Mar 4, 2022
Merged

Improve error messages #18

merged 15 commits into from
Mar 4, 2022

Conversation

abravalheri
Copy link
Owner

This is an attempt to improve the quality of the errors being reported.

Now a summary is printed only in the situations it is needed to understand the main error message. Extra details are only presented in debug mode.

Instead of printing the raw JSON schema, a YAML-like text is created. This text is also (hopefully) more clear than the errors provided by fastjsonschema.

@abravalheri abravalheri merged commit 60059f7 into main Mar 4, 2022
@abravalheri abravalheri deleted the better-errors branch March 4, 2022 01:21
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

Successfully merging this pull request may close these issues.

1 participant