From 0dc04bd7a66c84591bbb2d33e889f9c17da8cc58 Mon Sep 17 00:00:00 2001 From: chatlanin Date: Fri, 18 Apr 2025 13:53:59 +0300 Subject: [PATCH] add log --- src/event/event_manager.hpp | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/event/event_manager.hpp b/src/event/event_manager.hpp index 63ba332..08e9653 100755 --- a/src/event/event_manager.hpp +++ b/src/event/event_manager.hpp @@ -19,6 +19,10 @@ namespace VE hack::warn()("funs is empty"); return; } + else + { + hack::warn()("run emit"); + } std::size_t i = 0; try @@ -28,17 +32,17 @@ namespace VE catch(std::exception& ext) { hack::error()("call function is error:", ext.what()); - // hack::exception ex; - // ex.system_error(ext); - // ex.set_data(e); - // throw ex; + hack::exception ex; + ex.system_error(ext); + ex.set_data(e); + throw ex; } catch(...) { hack::error()("call function is error:", "oopps..."); - // hack::exception ex; - // ex.set_data(e); - // throw ex; + hack::exception ex; + ex.set_data(e); + throw ex; } }