diff options
author | Alvaro Muñoz <alvaro@pwntester.com> | 2020-11-13 19:50:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-13 19:50:03 +0100 |
commit | aaca2c1c4d07d5bb9dd297b8e21e4a66acfb8ad3 (patch) | |
tree | 861548ba31ba5d8aabfd278fa9944b165438dcfe /test/functional/api/vim_spec.lua | |
parent | 35325ddac04b1b59b7982797021cdaabdabc87fb (diff) | |
download | rneovim-aaca2c1c4d07d5bb9dd297b8e21e4a66acfb8ad3.tar.gz rneovim-aaca2c1c4d07d5bb9dd297b8e21e4a66acfb8ad3.tar.bz2 rneovim-aaca2c1c4d07d5bb9dd297b8e21e4a66acfb8ad3.zip |
feat(lua): improve error message to make it actionable (#13276)
* improve error message to make it actionable
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r-- | test/functional/api/vim_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index 0b52d06df9..7948f7da09 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -1350,7 +1350,7 @@ describe('API', function() eq({info=info}, meths.get_var("info_event")) eq({[1]=testinfo,[2]=stderr,[3]=info}, meths.list_chans()) - eq("Vim:Error invoking 'nvim_set_current_buf' on channel 3 (amazing-cat):\nWrong type for argument 1, expecting Buffer", + eq("Vim:Error invoking 'nvim_set_current_buf' on channel 3 (amazing-cat):\nWrong type for argument 1 when calling nvim_set_current_buf, expecting Buffer", pcall_err(eval, 'rpcrequest(3, "nvim_set_current_buf", -1)')) end) @@ -1512,7 +1512,7 @@ describe('API', function() it("does not leak memory on incorrect argument types", function() local status, err = pcall(nvim, 'set_current_dir',{'not', 'a', 'dir'}) eq(false, status) - ok(err:match(': Wrong type for argument 1, expecting String') ~= nil) + ok(err:match(': Wrong type for argument 1 when calling nvim_set_current_dir, expecting String') ~= nil) end) describe('nvim_parse_expression', function() |