strongloop/loopback-datasource-juggler — pull request #116 by bajtos (2014-05-20 09:02:10+00:00)
Title: 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.

/to @ritch or @raymondfeng please review