Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

get if errors exists before checking length

  • Loading branch information...
commit c237ea15f9ff62b8e858d250aaaed52c4132b6d2 1 parent a6c81b2
@garrensmith authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/validate.js
View
2  lib/validate.js
@@ -29,7 +29,7 @@ var ValidateAble = module.exports = function () {
}
var errors = validator.getErrors();
- if (errors.length > 0) {
+ if (errors && errors.length > 0) {
failed = true;
cb(errors, null);
}
Please sign in to comment.
Something went wrong with that request. Please try again.