fix(lua): report error in Lua Funcref callback properly (#35555)

This commit is contained in:
zeertzjq
2025-08-31 06:44:23 +08:00
parent c4845f3a12
commit 09f702bc13
2 changed files with 4 additions and 1 deletions

View File

@@ -1493,7 +1493,7 @@ int typval_exec_lua_callable(LuaRef lua_cb, int argcount, typval_T *argvars, typ
PUSH_ALL_TYPVALS(lstate, argvars, argcount, false);
if (nlua_pcall(lstate, argcount, 1)) {
nlua_print(lstate);
nlua_error(lstate, _("Lua callback: %.*s"));
return FCERR_OTHER;
}