From a9ae69ce5e77a60db11db4f8449408573b0753ed Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Fri, 26 Aug 2016 17:21:05 +0300 Subject: [PATCH] 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. --- source/Main.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/source/Main.cpp b/source/Main.cpp index 7c3d4371..be388fbd 100644 --- a/source/Main.cpp +++ b/source/Main.cpp @@ -68,14 +68,6 @@ void DoReload() */ LogErr("Squirrel exception caught (" #ev ") event"); /* */ 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"); /* -*/ } /* */ // --------------------------------------------------------------------------------------------