aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/api_functions_spec.lua
diff options
context:
space:
mode:
authorAlvaro Muñoz <alvaro@pwntester.com>2020-11-13 19:50:03 +0100
committerGitHub <noreply@github.com>2020-11-13 19:50:03 +0100
commitaaca2c1c4d07d5bb9dd297b8e21e4a66acfb8ad3 (patch)
tree861548ba31ba5d8aabfd278fa9944b165438dcfe /test/functional/eval/api_functions_spec.lua
parent35325ddac04b1b59b7982797021cdaabdabc87fb (diff)
downloadrneovim-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/eval/api_functions_spec.lua')
-rw-r--r--test/functional/eval/api_functions_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/eval/api_functions_spec.lua b/test/functional/eval/api_functions_spec.lua
index ccd97fc8c7..ed110efeb4 100644
--- a/test/functional/eval/api_functions_spec.lua
+++ b/test/functional/eval/api_functions_spec.lua
@@ -35,13 +35,13 @@ describe('eval-API', function()
eq('Vim(call):E119: Not enough arguments for function: nvim_set_option', err)
err = exc_exec('call nvim_buf_set_lines(1, 0, -1, [], ["list"])')
- eq('Vim(call):E5555: API call: Wrong type for argument 4, expecting Boolean', err)
+ eq('Vim(call):E5555: API call: Wrong type for argument 4 when calling nvim_buf_set_lines, expecting Boolean', err)
err = exc_exec('call nvim_buf_set_lines(0, 0, -1, v:true, "string")')
- eq('Vim(call):E5555: API call: Wrong type for argument 5, expecting ArrayOf(String)', err)
+ eq('Vim(call):E5555: API call: Wrong type for argument 5 when calling nvim_buf_set_lines, expecting ArrayOf(String)', err)
err = exc_exec('call nvim_buf_get_number("0")')
- eq('Vim(call):E5555: API call: Wrong type for argument 1, expecting Buffer', err)
+ eq('Vim(call):E5555: API call: Wrong type for argument 1 when calling nvim_buf_get_number, expecting Buffer', err)
err = exc_exec('call nvim_buf_line_count(17)')
eq('Vim(call):E5555: API call: Invalid buffer id: 17', err)