1
0
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:
sapier
2017-01-15 13:36:53 +01:00
committed by Loïc Blot
parent e12019cfd9
commit f5070b4454
4 changed files with 16 additions and 7 deletions

View File

@@ -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);
}
}