mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 04:07:39 +02:00
Add in more debugging information to the schema validator development script.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user