aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/generators
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-08-01 23:35:34 +0200
committerbfredl <bjorn.linse@gmail.com>2023-08-07 13:18:11 +0200
commit6c0812d92e0c7937b913175b8856064cb45f55c2 (patch)
treefa221f8b4c76277ccc77fb5621fb0b81798bd225 /src/nvim/generators
parent7bc93e0e2f246dd78026a3472d929a0fe450f70d (diff)
downloadrneovim-6c0812d92e0c7937b913175b8856064cb45f55c2.tar.gz
rneovim-6c0812d92e0c7937b913175b8856064cb45f55c2.tar.bz2
rneovim-6c0812d92e0c7937b913175b8856064cb45f55c2.zip
feat(lua): specific error messages for type checking `opts` params
Diffstat (limited to 'src/nvim/generators')
-rw-r--r--src/nvim/generators/gen_api_dispatch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/generators/gen_api_dispatch.lua b/src/nvim/generators/gen_api_dispatch.lua
index 9c15597fcc..02648e6c99 100644
--- a/src/nvim/generators/gen_api_dispatch.lua
+++ b/src/nvim/generators/gen_api_dispatch.lua
@@ -630,7 +630,7 @@ local function process_function(fn)
local seterr = ''
if string.match(param_type, '^KeyDict_') then
write_shifted_output(output, string.format([[
- %s %s = { 0 }; nlua_pop_keydict(lstate, &%s, %s_get_field, %s&err);]], param_type, cparam, cparam, param_type, extra))
+ %s %s = { 0 }; nlua_pop_keydict(lstate, &%s, %s_get_field, &err_param, &err);]], param_type, cparam, cparam, param_type))
cparam = '&'..cparam
errshift = 1 -- free incomplete dict on error
else