1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-20 19:57:12 +01:00

Show a proper debug trace when catching squirrel exceptions at the event entry level.

This commit is contained in:
Sandu Liviu Catalin 2016-08-25 23:46:51 +03:00
parent 44d6905d3b
commit dfbb0b9c46

View File

@ -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 (...) /*
*/ { /*