From dfbb0b9c46aa00a054a877349deb2895e46e0dba Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 25 Aug 2016 23:46:51 +0300 Subject: [PATCH] Show a proper debug trace when catching squirrel exceptions at the event entry level. --- source/Main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Main.cpp b/source/Main.cpp index 8f7691be..7c3d4371 100644 --- a/source/Main.cpp +++ b/source/Main.cpp @@ -66,12 +66,11 @@ void DoReload() */ catch (const Sqrat::Exception & e) /* */ { /* */ LogErr("Squirrel exception caught (" #ev ") event"); /* -*/ LogInf("Message: %s", e.what()); /* +*/ Logger::Get().Debug("%s", e.what()); /* */ } /* */ catch (const std::exception & e) /* */ { /* -*/ LogErr("Program exception caught (" #ev ") event"); /* -*/ LogInf("Message: %s", e.what()); /* +*/ LogErr("Program exception caught (" #ev ") event [%s]", e.what()); /* */ } /* */ catch (...) /* */ { /*