mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 14:40:13 +01:00
freedreno/regs: Print xml validation error if validation fails
Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23881>
This commit is contained in:
parent
431bbea840
commit
148f214dae
1 changed files with 2 additions and 1 deletions
|
|
@ -429,7 +429,8 @@ class Parser(object):
|
|||
|
||||
xml_doc = etree.parse(filename)
|
||||
if not xmlschema.validate(xml_doc):
|
||||
raise self.error("Schema validation failed for: " + filename)
|
||||
error_str = str(xmlschema.error_log.filter_from_errors()[0])
|
||||
raise self.error("Schema validation failed for: " + filename + "\n" + error_str)
|
||||
except ImportError:
|
||||
print("lxml not found, skipping validation", file=sys.stderr)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue