Skip to content

Commit 9c1a2f5

Browse files
committed
Try to be as unconfusing as possible since is_type can be called outside validation.
1 parent 8a3be95 commit 9c1a2f5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

jsonschema/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ def __unicode__(self):
105105
pschema = pprint.pformat(self.schema, width=72)
106106
pinstance = pprint.pformat(self.instance, width=72)
107107
return textwrap.dedent("""
108-
Unknown Type: %r, in schema:
108+
Unknown type %r for validator with schema:
109109
%s
110110
111-
On instance:
111+
While checking instance:
112112
%s
113113
""".rstrip()
114114
) % (self.type, _utils.indent(pschema), _utils.indent(pinstance))

0 commit comments

Comments
 (0)