# HG changeset patch # User sam # Date 1711704510 -25200 # Node ID 8526d1da2f693e00342a9b33e2809b9b5009e45d # Parent e3ef8ebdda46e36610ec01f1d57114750fd46b89 add: better vulkan exception handling diff -r e3ef8ebdda46 -r 8526d1da2f69 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*(