diff --git a/main/source/crash_handlers.cpp b/main/source/crash_handlers.cpp index 9effc25ad..c0cf89ca2 100644 --- a/main/source/crash_handlers.cpp +++ b/main/source/crash_handlers.cpp @@ -55,14 +55,14 @@ namespace hex::crash { static void signalHandler(int signalNumber, const std::string &signalName) { log::fatal("Terminating with signal '{}' ({})", signalName, signalNumber); - // Trigger an event so that plugins can handle crashes - // It may affect things (like the project path), - // so we do this after saving the crash file - EventManager::post(signalNumber); - // Trigger the crash callback crashCallback(hex::format("Received signal '{}' ({})", signalName, signalNumber)); + // Trigger an event so that plugins can handle crashes + // It may affect things (like the project path), + // so we do this after saving the crash file + EventManager::post(signalNumber); + // Detect if the crash was due to an uncaught exception if (std::uncaught_exceptions() > 0) { log::fatal("Uncaught exception thrown!");