mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Don't catch application exceptions in the outer most event functions because they probably left the VM stack in an invalid state and the server should be allowed to crash.
This commit is contained in:
@ -68,14 +68,6 @@ void DoReload()
|
|||||||
*/ LogErr("Squirrel exception caught (" #ev ") event"); /*
|
*/ LogErr("Squirrel exception caught (" #ev ") event"); /*
|
||||||
*/ Logger::Get().Debug("%s", e.what()); /*
|
*/ Logger::Get().Debug("%s", e.what()); /*
|
||||||
*/ } /*
|
*/ } /*
|
||||||
*/ catch (const std::exception & e) /*
|
|
||||||
*/ { /*
|
|
||||||
*/ LogErr("Program exception caught (" #ev ") event [%s]", e.what()); /*
|
|
||||||
*/ } /*
|
|
||||||
*/ catch (...) /*
|
|
||||||
*/ { /*
|
|
||||||
*/ LogErr("Unknown exception caught (" #ev ") event"); /*
|
|
||||||
*/ } /*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user