Skip to content

Commit dd92b8d

Browse files
authored
Merge pull request #1175 from BostjanPisler/patch-1
Fixed example for creating ValidationError
2 parents 4f2c167 + 93a739d commit dd92b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ function ErrorCodes(messages) {
776776
* }
777777
*
778778
* // This line shows how to create a ValidationError
779-
* err = new ValidationError(model);
779+
* var err = new MyModel.ValidationError(model);
780780
* callback(err);
781781
* }
782782
* ```

0 commit comments

Comments
 (0)