From 3de24936533a51c0cbf61de4b19785ee7407526c Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Wed, 20 Sep 2023 09:20:15 +0200 Subject: [PATCH] typo Signed-off-by: Jan Kowalleck --- examples/complex.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/complex.py b/examples/complex.py index f64b1652..dede34f5 100644 --- a/examples/complex.py +++ b/examples/complex.py @@ -57,7 +57,7 @@ try: validation_errors = JsonValidator(SchemaVersion.V1_4).validate_str(serialized_json) if validation_errors: - print('', 'JSON ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr) + print('JSON valid', 'ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr) sys.exit(2) print('JSON valid') except MissingOptionalDependencyException as error: @@ -68,8 +68,8 @@ try: validation_errors = XmlValidator(SchemaVersion.V1_4).validate_str(serialized_xml) if validation_errors: - print('', 'JSON ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr) + print('XML invalid', 'ValidationError:', repr(validation_errors), sep='\n', file=sys.stderr) sys.exit(2) - print('JSON valid') + print('XML valid') except MissingOptionalDependencyException as error: print('XML-validation was skipped due to', error)