diff options
author | Julian Berman <Julian@GrayVines.com> | 2013-10-20 18:48:59 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2013-10-20 18:48:59 -0400 |
commit | 9c1a2f589c7dc014f53d1c0f47557d8134594537 (patch) | |
tree | 22f1a2b29e3fbbf8460d586120f1db201265f83f | |
parent | 8a3be956ea0cdd1ca754de3ceebce3ad690dc157 (diff) | |
download | jsonschema-9c1a2f589c7dc014f53d1c0f47557d8134594537.tar.gz |
Try to be as unconfusing as possible since is_type can be called outside validation.
-rw-r--r-- | jsonschema/exceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py index e93c145..e94907d 100644 --- a/jsonschema/exceptions.py +++ b/jsonschema/exceptions.py @@ -105,10 +105,10 @@ class UnknownType(Exception): pschema = pprint.pformat(self.schema, width=72) pinstance = pprint.pformat(self.instance, width=72) return textwrap.dedent(""" - Unknown Type: %r, in schema: + Unknown type %r for validator with schema: %s - On instance: + While checking instance: %s """.rstrip() ) % (self.type, _utils.indent(pschema), _utils.indent(pinstance)) |