Skip to content

Commit

Permalink
Merge pull request #2788 from chetverikov/errors
Browse files Browse the repository at this point in the history
Fix errors is not defined
  • Loading branch information
vkarpov15 committed Mar 25, 2015
2 parents 174e1f0 + 9408e1d commit 343811b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema/documentarray.js
Expand Up @@ -93,7 +93,7 @@ DocumentArray.prototype.doValidate = function (array, fn, scope) {
// sidestep sparse entries
var doc = array[i];
if (!doc) {
--count || fn(errors);
--count || fn(error);
continue;
}

Expand Down

0 comments on commit 343811b

Please sign in to comment.