Skip to content

Commit 6748a80

Browse files
committed
Update validate.rst for error printing change
1 parent fc4f687 commit 6748a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/validate.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ adhere to.
133133
... }
134134
>>> v = Draft3Validator(schema)
135135
>>> for error in sorted(v.iter_errors([2, 3, 4]), key=str):
136-
... print(error)
136+
... print(error.message)
137137
4 is not one of [1, 2, 3]
138138
[2, 3, 4] is too long
139139

0 commit comments

Comments
 (0)