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

make built-in validators return an instance of Error vs string

1 parent 4173be8d
Showing with 0 additions and 5 deletions
......@@ -402,11 +402,6 @@ DaoValidator.prototype._pushError = function(isBuiltin, errorKey, rawError) {
this.errors[errorKey] = [];
}
if (isBuiltin) {
this.errors[errorKey].push(rawError);
return;
}
var error = new sequelizeError.ValidationError()
error[DaoValidator.RAW_KEY_NAME] = rawError
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!