vk/util: print a nice error in vk_icd_gen.py when VK_HEADER_VERSION is not defined
Shouldn't be reachable in normal case, but when messing with vk.xml it's
nicer than the current:
TypeError: can only concatenate str (not NoneType) to str
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27779>
This commit is contained in:
committed by
Marge Bot
parent
3f2790adcd
commit
64f037e079
@@ -37,6 +37,7 @@ def get_xml_patch_version(xml_file):
|
||||
continue
|
||||
|
||||
return name.tail.strip()
|
||||
assert False, f"Failed to find VK_HEADER_VERSION in {xml_file}"
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user