Merge pull request #119 from tritoch/exit-on-xsd-fail

Exit with failure on XSD invalid
This commit is contained in:
Zach H 2017-07-11 00:16:37 -04:00 committed by GitHub
commit b1693f3c30

View File

@ -107,6 +107,7 @@ def verify_xml(file, schema):
print "Errors validating XML file " + file + " against XSD:"
for error in xsd_errors:
print error
sys.exit("Error: " + file + " does not pass Cockatrice XSD validation.")
return False
return True