aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index 7b16845af..c5db0fdfb 100644
--- a/src/server.h
+++ b/src/server.h
@@ -300,6 +300,10 @@ public:
inline void setAsyncFatalError(const std::string &error)
{ m_async_fatal_error.set(error); }
+ inline void setAsyncFatalError(const LuaError &e)
+ {
+ setAsyncFatalError(std::string("Lua: ") + e.what());
+ }
bool showFormspec(const char *name, const std::string &formspec, const std::string &formname);
Map & getMap() { return m_env->getMap(); }