From 9d5220db1294ab2254dbf014564451897185d6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=BC=C3=9Fenbach?= Date: Mon, 27 Mar 2023 12:31:14 +0200 Subject: [PATCH] Extend default case in throwResultException to also get the actual message. (#1544) --- VulkanHppGenerator.cpp | 2 +- vulkan/vulkan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VulkanHppGenerator.cpp b/VulkanHppGenerator.cpp index d0feb9a..f3b36b7 100644 --- a/VulkanHppGenerator.cpp +++ b/VulkanHppGenerator.cpp @@ -9938,7 +9938,7 @@ std::string VulkanHppGenerator::generateThrowResultException() const switch ( result ) { ${cases} - default: throw SystemError( make_error_code( result ) ); + default: throw SystemError( make_error_code( result ), message ); } } })"; diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 885ac45..a5101ab 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -6579,7 +6579,7 @@ namespace VULKAN_HPP_NAMESPACE case Result::eErrorInvalidVideoStdParametersKHR: throw InvalidVideoStdParametersKHRError( message ); # endif /*VK_ENABLE_BETA_EXTENSIONS*/ case Result::eErrorCompressionExhaustedEXT: throw CompressionExhaustedEXTError( message ); - default: throw SystemError( make_error_code( result ) ); + default: throw SystemError( make_error_code( result ), message ); } } } // namespace