不要怂,就是干,撸起袖子干!

Changed the ValidationError call to work the same way as before.

1 parent db0bff13
Showing with 1 additions and 1 deletions
......@@ -150,7 +150,7 @@ InstanceValidator.prototype.validate = function() {
self._customValidators()
]).then(function() {
if (self.errors.length) {
return new sequelizeError.ValidationError('Validation error', self.errors);
return new sequelizeError.ValidationError(null, self.errors);
}
return new Promise(function(resolve) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!