vogels icon indicating copy to clipboard operation
vogels copied to clipboard

Add table name to validation errors.

Open andyday opened this issue 8 years ago • 5 comments

When validation (joi) errors occur there is no context to help determine what table the error occurred on. This small pull request fixes this. The more robust approach would be to extend Error and add table as a property and then modify the toString function, but that may be more than is needed.

andyday avatar Jun 29 '16 18:06 andyday

Would you like this ported to https://github.com/clarkie/dynogels

clarkie avatar Jul 15 '16 13:07 clarkie

@clarkie sure. what's been added to this over vogels?

andyday avatar Jul 15 '16 17:07 andyday

Not a lot as yet but I'm working on it. I've updated joi bit still need to go to v9.

clarkie avatar Jul 15 '16 17:07 clarkie

Merged into dynogels. But now I'm confused as to what version to bump: http://stackoverflow.com/questions/38432774/semver-on-nested-object-in-javascript-major-minor-or-patch

clarkie avatar Jul 18 '16 09:07 clarkie

Released as part of Dynogels v5.0.2

clarkie avatar Jul 18 '16 19:07 clarkie