clarkie / dynogels

DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Other
490 stars 110 forks source link

Give name and detail to table update schema validation error #74

Closed cdhowie closed 7 years ago

cdhowie commented 7 years ago

This change allows update failures due to schema validation errors to be differentiated by the error's name attribute, and also exposes the error detail object so that, for example, REST APIs can indicate exactly what errors are present in the JSON payload.

This change partially fixes #73, but there are a few more new Error instances in the rest of the codebase that need to be addressed.