From 64f037e079db56f6bb6d20fdbf279c9354547042 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 25 Feb 2024 10:45:07 +0000 Subject: [PATCH] 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: --- src/vulkan/util/vk_icd_gen.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vulkan/util/vk_icd_gen.py b/src/vulkan/util/vk_icd_gen.py index 7401388646b..5cdf6728205 100644 --- a/src/vulkan/util/vk_icd_gen.py +++ b/src/vulkan/util/vk_icd_gen.py @@ -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__':