Make lua tracebacks a little better
This commit is contained in:
@@ -859,7 +859,7 @@ void World::invoke_lua_expr(int64_t actor_id, int64_t place_id, std::string_view
|
||||
LuaExtStack LS(L, func);
|
||||
|
||||
// create the compiled closure.
|
||||
eng::string error = LS.load(func, datapack, "=invoke");
|
||||
eng::string error = LS.load(func, datapack, "<console>");
|
||||
if (!error.empty()) {
|
||||
// The closure is actually an error message. Do nothing.
|
||||
// This should normally not happen: LuaConsole should filter
|
||||
|
||||
Reference in New Issue
Block a user