mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Added lua tracebacks to some errors where you have been blind to what… (#5043)
* Added lua tracebacks to some errors where you have been blind to what actually went wrong
This commit is contained in:
parent
e12019cfd9
commit
f5070b4454
4 changed files with 16 additions and 7 deletions
|
@ -107,7 +107,8 @@ void *ServerThread::run()
|
|||
} catch (con::ConnectionBindFailed &e) {
|
||||
m_server->setAsyncFatalError(e.what());
|
||||
} catch (LuaError &e) {
|
||||
m_server->setAsyncFatalError("Lua: " + std::string(e.what()));
|
||||
m_server->setAsyncFatalError(
|
||||
"ServerThread::run Lua: " + std::string(e.what()));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -487,7 +488,7 @@ void Server::step(float dtime)
|
|||
g_settings->get("kick_msg_crash"),
|
||||
g_settings->getBool("ask_reconnect_on_crash"));
|
||||
}
|
||||
throw ServerError(async_err);
|
||||
throw ServerError("AsyncErr: " + async_err);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue