feat(lua): improve error message to make it actionable (#13276)

* improve error message to make it actionable
This commit is contained in:
Alvaro Muñoz
2020-11-13 19:50:03 +01:00
committed by GitHub
parent 35325ddac0
commit aaca2c1c4d
5 changed files with 9 additions and 9 deletions

View File

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