diff --git a/src/scripting/application_lua_kernel.cpp b/src/scripting/application_lua_kernel.cpp index ad1708b82e1d..44e9bf174d87 100644 --- a/src/scripting/application_lua_kernel.cpp +++ b/src/scripting/application_lua_kernel.cpp @@ -183,8 +183,6 @@ application_lua_kernel::thread * application_lua_kernel::load_script_from_string context += " a syntax error"; } else if(errcode == LUA_ERRMEM){ context += " a memory error"; - } else if(errcode == LUA_ERRGCMM) { - context += " an error in garbage collection metamethod"; } else { context += " an unknown error"; } diff --git a/src/scripting/lua_kernel_base.cpp b/src/scripting/lua_kernel_base.cpp index f46e193b4720..ec7121e8aef9 100644 --- a/src/scripting/lua_kernel_base.cpp +++ b/src/scripting/lua_kernel_base.cpp @@ -659,8 +659,6 @@ bool lua_kernel_base::protected_call(lua_State * L, int nArgs, int nRets, error_ context += "Lua error in attached debugger: "; } else if (errcode == LUA_ERRMEM) { context += "Lua out of memory error: "; - } else if (errcode == LUA_ERRGCMM) { - context += "Lua error in garbage collection metamethod: "; } else { context += "unknown lua error: "; } @@ -694,8 +692,6 @@ bool lua_kernel_base::load_string(char const * prog, const std::string& name, er context += " a syntax error"; } else if(errcode == LUA_ERRMEM){ context += " a memory error"; - } else if(errcode == LUA_ERRGCMM) { - context += " an error in garbage collection metamethod"; } else { context += " an unknown error"; }