Skip to content

Commit

Permalink
Stringify schema errors to avoid "unprintable error" messages in pyte…
Browse files Browse the repository at this point in the history
…st and others (#26)
  • Loading branch information
mbachry committed Dec 12, 2018
1 parent 5fed1ab commit f0106f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hedwig/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def check_schema(cls, schema: dict) -> None:
errors.append(f"Schema not found for '{msg_type}' v{version_pattern}")

if errors:
raise SchemaError(errors)
raise SchemaError(str(errors))

@staticmethod
@FormatChecker.cls_checks('human-uuid')
Expand Down

0 comments on commit f0106f1

Please sign in to comment.