diff --git a/lib/abstract-class.js b/lib/abstract-class.js index bf540321..26863475 100644 --- a/lib/abstract-class.js +++ b/lib/abstract-class.js @@ -577,7 +577,7 @@ AbstractClass.prototype.updateAttributes = function updateAttributes(data, cb) { inst.isValid(function (valid) { if (!valid) { if (cb) { - cb(new Error('Validation error')); + cb(new Error('Validation error'), inst); } } else { update();