loopback-datasource-juggler/lib
Miroslav Bajtoš 438df25d8e validations: include more details in `err.message`
Modify ValidationError constructor to include the model name and
a human-readable representation of the validation errors (messages)
in the error message.

Before this change, the message was pointing the reader
to `err.details`.  Most frameworks (e.g. express, mocha) log only
`err.message` but not other error properties, thus the logs were
rather unhelpful.

Example of the new error message:

    The `User` instance is not valid. Details: `name` can't be blank.
2014-05-27 22:25:42 -07:00
..
connectors Add support for logical operator (AND/OR) 2014-05-27 22:25:42 -07:00
connector.js Use String[] for types and add test for supported types 2014-01-29 17:19:07 -08:00
dao.js Fix typo "Unkown" => "Unknown" 2014-05-15 23:26:17 -04:00
datasource.js Correct JSDoc for discoverModelDefinitions 2014-05-06 14:18:10 -07:00
geo.js Add JSDoc for lat and lng properties. 2014-05-14 16:34:24 -07:00
hooks.js Reformat the code 2014-01-24 09:09:53 -08:00
include.js Fix bug where invalid relations in include filters would hang the server 2014-05-13 13:59:15 -04:00
introspection.js Reformat the code 2014-01-24 09:09:53 -08:00
jutil.js Refactor mixin and always redefine proxy/delegate methods 2014-02-20 17:25:07 -08:00
list.js Add hidden property support 2014-04-11 11:39:57 -07:00
model-builder.js Updates to JSDoc comments for API doc 2014-03-12 16:28:46 -07:00
model-definition.js Fix the base sql connector to correct escape id values 2014-03-24 14:56:52 -07:00
model.js Merge 2014-05-14 13:33:46 -07:00
relations.js Updated JSDoc comments with content from .md file 2014-05-15 17:59:23 -07:00
scope.js scope: improve description of shared methods 2014-04-03 09:19:06 +02:00
sql.js Fix the base sql connector to correct escape id values 2014-03-24 14:56:52 -07:00
types.js Rewrite the List class for typed array 2014-02-14 10:41:00 -08:00
utils.js Make sure __cachedRelations is not enumerable 2014-01-28 09:57:23 -08:00
validations.js validations: include more details in `err.message` 2014-05-27 22:25:42 -07:00