diff --git a/lib/dao.js b/lib/dao.js index 20ccc0c2..1bdce64a 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -1067,6 +1067,7 @@ DataAccessObject.findOrCreate = function findOrCreate(query, data, options, cb) function _findOrCreate(query, data, currentInstance) { var modelName = self.modelName; function findOrCreateCallback(err, data, created) { + if (err) return cb(err); var context = { Model: Model, data: data,