1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Prepend "Lua: " before lua exceptions

src/server.cpp
src/emerge.cpp
This commit is contained in:
Břetislav Štec 2015-08-01 22:52:28 +02:00 committed by kwolekr
parent c4287a0d68
commit a5e5aa5be9
2 changed files with 11 additions and 22 deletions

View file

@ -494,8 +494,8 @@ void *EmergeThread::Thread()
try { // takes about 90ms with -O1 on an e3-1230v2
m_server->getScriptIface()->environment_OnGenerated(
minp, maxp, mapgen->blockseed);
} catch(LuaError &e) {
m_server->setAsyncFatalError(e.what());
} catch (LuaError &e) {
m_server->setAsyncFatalError("Lua: " + std::string(e.what()));
}
EMERGE_DBG_OUT("ended up with: " << analyze_block(block));