1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make minetest abort on lua panic

Currently, lua does a regular exit() after a lua panic, which can make
a problem hard to debug. Invoking FATAL_ERROR() instead will print
some useful information, and abort() minetest, so that a debugger can
be used to analyze the situation.
This commit is contained in:
Rogier 2016-07-25 18:43:15 +02:00 committed by paramat
parent a95f983ea8
commit a76e7698b2
2 changed files with 15 additions and 0 deletions

View file

@ -118,6 +118,8 @@ protected:
#endif
private:
static int luaPanic(lua_State *L);
lua_State* m_luastack;
Server* m_server;