mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
feat(lua): improve error message to make it actionable (#13276)
* improve error message to make it actionable
This commit is contained in:
@@ -751,7 +751,7 @@ describe('nvim_buf_set_keymap, nvim_buf_del_keymap', function()
|
||||
end
|
||||
|
||||
it('rejects negative bufnr values', function()
|
||||
eq('Wrong type for argument 1, expecting Buffer',
|
||||
eq('Wrong type for argument 1 when calling nvim_buf_set_keymap, expecting Buffer',
|
||||
pcall_err(bufmeths.set_keymap, -1, '', 'lhs', 'rhs', {}))
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user