summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jsonschema/exceptions.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/jsonschema/exceptions.py b/jsonschema/exceptions.py
index 30419ae..c6e5ad9 100644
--- a/jsonschema/exceptions.py
+++ b/jsonschema/exceptions.py
@@ -106,12 +106,14 @@ class UnknownType(Exception):
pinstance = pprint.pformat(self.instance, width=72)
return textwrap.dedent("""
Uknown Type: %s, in schema:
- %r
+ %s
On instance:
- %s
+ %s
""".rstrip()
- ) % (self.type, self.schema, self.instance)
+ ) % (self.type,
+ _utils.indent(pschema),
+ _utils.indent(pinstance))