Extend default case in throwResultException to also get the actual message. (#1544)

This commit is contained in:
Andreas Süßenbach 2023-03-27 12:31:14 +02:00 committed by GitHub
parent cfed28c23d
commit 9d5220db12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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 );
}
}
})";

View File

@ -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