From 9c1a2f589c7dc014f53d1c0f47557d8134594537 Mon Sep 17 00:00:00 2001 From: Julian Berman Date: Sun, 20 Oct 2013 18:48:59 -0400 Subject: Try to be as unconfusing as possible since is_type can be called outside validation. --- jsonschema/exceptions.py | 4 ++-- 1 file 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)) -- cgit v1.2.1