diff --git a/lib/dao.js b/lib/dao.js index 1200b82b..3cd95d0d 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -563,6 +563,7 @@ DataAccessObject.upsert = function(data, options, cb) { }); } function done(err, data, info) { + if (err) return cb(err); var context = { Model: Model, data: data,