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 default error messages for lollipop fields #60

Open
boris-42 opened this issue Aug 23, 2017 · 0 comments
Open

Improve default error messages for lollipop fields #60

boris-42 opened this issue Aug 23, 2017 · 0 comments

Comments

@boris-42
Copy link

Current messages are not enough specific and don't actually help end user to figure out the problem.

For example if we use constant type:

>>> from lollipop import types
>>> x = types.Constant(2)
>>> x.validate(1)
'Value is incorrect'
# Instead of something more reasonable 
"Value 1 is incorrect, field is constant and can be only equal to 2"
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