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
2 changed files with 2 additions and 2 deletions

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