camo icon indicating copy to clipboard operation
camo copied to clipboard

Better handling for no found test functions in schema.

Open michaeljota opened this issue 9 years ago • 1 comments

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.

michaeljota avatar Jan 29 '16 22:01 michaeljota

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!

scottwrobinson avatar Feb 01 '16 22:02 scottwrobinson