aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/lua/executor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/lua/executor.c')
-rw-r--r--src/nvim/lua/executor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/lua/executor.c b/src/nvim/lua/executor.c
index 9f30609d66..0d5622f1e7 100644
--- a/src/nvim/lua/executor.c
+++ b/src/nvim/lua/executor.c
@@ -987,7 +987,7 @@ int typval_exec_lua_callable(
PUSH_ALL_TYPVALS(lstate, argvars, argcount, false);
if (lua_pcall(lstate, argcount + offset, 1, 0)) {
- luaL_error(lstate, "nlua_CFunction_func_call failed.");
+ nlua_print(lstate);
return ERROR_OTHER;
}
@@ -1405,7 +1405,9 @@ char_u *nlua_register_table_as_callable(typval_T *const arg)
lua_State *const lstate = nlua_enter();
+#ifndef NDEBUG
int top = lua_gettop(lstate);
+#endif
nlua_pushref(lstate, table_ref);
if (!lua_getmetatable(lstate, -1)) {