# HG changeset patch # User sam # Date 1711704510 -25200 # Node ID d9b5370da3fef40521345500292a20adc5f54407 # Parent 47a6fc0df3a9731a774fc1946e004d43c06a23c6 add: better vulkan exception handling diff -r 47a6fc0df3a9 -r d9b5370da3fe semicongine/vulkan/instance.nim --- a/semicongine/vulkan/instance.nim Fri Mar 29 16:01:53 2024 +0700 +++ b/semicongine/vulkan/instance.nim Fri Mar 29 16:28:30 2024 +0700 @@ -109,8 +109,8 @@ log LEVEL_MAPPING[messageSeverity], &"{toEnums messageTypes}: {pCallbackData.pMessage}" if messageSeverity == VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT: - echo getStackTrace() - quit() + let errorMsg = getStackTrace() & &"\n{toEnums messageTypes}: {pCallbackData.pMessage}" + raise newException(Exception, errorMsg) return false proc createDebugMessenger*(