mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Don't crash if a Lua error occurs inside get_staticdata
This commit is contained in:
parent
d71872af23
commit
26453df2f7
4 changed files with 35 additions and 17 deletions
|
@ -4536,7 +4536,7 @@ void the_game(bool *kill,
|
|||
error_message = e.what();
|
||||
errorstream << "ServerError: " << error_message << std::endl;
|
||||
} catch (ModError &e) {
|
||||
// DO NOT TRANSLATE the `ModError`, it's used by ui.lua
|
||||
// DO NOT TRANSLATE the `ModError`, it's used by `ui.lua`
|
||||
error_message = std::string("ModError: ") + e.what() +
|
||||
strgettext("\nCheck debug.txt for details.");
|
||||
errorstream << error_message << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue