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

Better handling for no found test functions in schema. #41

Open
michaeljota opened this issue Jan 29, 2016 · 1 comment
Open

Better handling for no found test functions in schema. #41

michaeljota opened this issue Jan 29, 2016 · 1 comment

Comments

@michaeljota
Copy link

Right now if you put some invalid validator in the schema, it throws a not found error.

that._schema[key].match.test is not a function

In the example, 'match' it's the name of the invalid validator.

I guess it should throw some information about where it is being used.

@scottwrobinson
Copy link
Owner

Yes, there is a lot of room for improvement on the errors it throws. Most aren't descriptive enough.

I've added this to my to-do list. Thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants