Skip to content

Commit 93a739d

Browse files
author
Boštjan Pišler
authored
Fixed example for creating ValidationError
1 parent c8ade9e commit 93a739d

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)