From 8e6cba022b797383ef736ced9dfbb4f6b8c7e31b Mon Sep 17 00:00:00 2001 From: Mike Auty Date: Wed, 10 Jul 2019 14:09:59 +0100 Subject: [PATCH] Add in more debugging information to the schema validator development script. --- development/schema_validate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/development/schema_validate.py b/development/schema_validate.py index f02525a00..5955787f7 100644 --- a/development/schema_validate.py +++ b/development/schema_validate.py @@ -35,7 +35,7 @@ if __name__ == '__main__': for filename in args.filenames: try: if os.path.exists(filename): - print("[?] Validation successful: {}".format(filename)) + print("[?] Validating file: {}".format(filename)) with open(filename, 'r') as t: test = json.load(t) @@ -53,6 +53,6 @@ if __name__ == '__main__': print("[x] File not found: {}".format(filename)) except Exception as e: failures.append(filename) - print("[x] Exception occured: {}".format(filename)) + print("[x] Exception occured: {} ({})".format(filename, repr(e))) print("Failures", failures)