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:
parent
a95f983ea8
commit
a76e7698b2
2 changed files with 15 additions and 0 deletions
|
@ -118,6 +118,8 @@ protected:
|
|||
#endif
|
||||
|
||||
private:
|
||||
static int luaPanic(lua_State *L);
|
||||
|
||||
lua_State* m_luastack;
|
||||
|
||||
Server* m_server;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue