From 8d521340d470e87412d85361407a88d1ea4a84f2 Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Mon, 9 Mar 2026 20:22:01 +0100 Subject: [PATCH] windows exception handler --- implementations/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/implementations/main.cpp b/implementations/main.cpp index 5f5ece1..966c5c2 100644 --- a/implementations/main.cpp +++ b/implementations/main.cpp @@ -27,13 +27,12 @@ namespace fs = std::filesystem; #if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32) void terminateHandler() { - std::cout << "test" << std::endl; try { if (auto e = std::current_exception()) { std::rethrow_exception(e); } } catch (const std::exception& e) { - MessageBoxA(nullptr, e.what(), "Unhandled Exception", MB_ICONERROR | MB_OK); + std::cout << e.what() << std::endl; } std::abort(); }