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

Commit b206ebff by Mick Hansen

Merge branch 'master' of github.com:sequelize/sequelize

2 parents 4f3abbb9 530f28bc
Showing with 1 additions and 1 deletions
......@@ -115,7 +115,7 @@ module.exports = (function() {
var values = match[1].split('-')
, fields = {}
, message = 'Validation error'
, uniqueKey = this.callee.__options.uniqueKeys[match[2]];
, uniqueKey = this.callee && this.callee.__options.uniqueKeys[match[2]];
if (!!uniqueKey) {
if (!!uniqueKey.msg) message = uniqueKey.msg;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!