mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user