summaryrefslogtreecommitdiff
path: root/src/server.cpp
diff options
context:
space:
mode:
authorsapier <sapier@users.noreply.github.com>2017-01-15 13:36:53 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-01-15 13:36:53 +0100
commitf5070b44542edba97a20445c3774c221077cc4a2 (patch)
tree57f66ce352d868945234065e093fdca2adf2b95f /src/server.cpp
parente12019cfd9ff4e9afa1d7dd326a0094b15fb9b2b (diff)
downloadminetest-f5070b44542edba97a20445c3774c221077cc4a2.tar.gz
minetest-f5070b44542edba97a20445c3774c221077cc4a2.tar.bz2
minetest-f5070b44542edba97a20445c3774c221077cc4a2.zip
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
Diffstat (limited to 'src/server.cpp')
-rw-r--r--src/server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 7380d37c2..29dce5a4a 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -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);
}
}