Make lua tracebacks a little better

This commit is contained in:
2026-05-21 19:24:11 -04:00
parent 2bfa3024f1
commit 521d4726ad
2 changed files with 7 additions and 8 deletions

View File

@@ -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