mirror of
https://github.com/KhronosGroup/Vulkan-Hpp.git
synced 2024-10-14 16:32:17 +00:00
Extend default case in throwResultException to also get the actual message. (#1544)
This commit is contained in:
parent
cfed28c23d
commit
9d5220db12
@ -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 );
|
||||
}
|
||||
}
|
||||
})";
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user