diff options
author | TJ DeVries <devries.timothyj@gmail.com> | 2020-10-17 16:47:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 16:47:18 -0400 |
commit | 0ad5b34170920064a415cfcbb01960530ec5f615 (patch) | |
tree | 880ad5f5bdbe8c57123c403077f6ce432d5d5f95 /test/functional/lua/luaeval_spec.lua | |
parent | bd80671786f59152d5ff19ca5ecd065ace067a51 (diff) | |
parent | 8e77d70e29f936f4e708ee3244046188b8ad0383 (diff) | |
download | rneovim-0ad5b34170920064a415cfcbb01960530ec5f615.tar.gz rneovim-0ad5b34170920064a415cfcbb01960530ec5f615.tar.bz2 rneovim-0ad5b34170920064a415cfcbb01960530ec5f615.zip |
Merge pull request #12053 from tjdevries/tjdevries/nicer_validate
vim.validate(): include stacktrace in message
Diffstat (limited to 'test/functional/lua/luaeval_spec.lua')
-rw-r--r-- | test/functional/lua/luaeval_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/lua/luaeval_spec.lua b/test/functional/lua/luaeval_spec.lua index 75966393b1..2ec48777fd 100644 --- a/test/functional/lua/luaeval_spec.lua +++ b/test/functional/lua/luaeval_spec.lua @@ -477,14 +477,14 @@ describe('v:lua', function() eq(NIL, eval('v:lua.mymod.noisy("eval")')) eq("hey eval", meths.get_current_line()) - eq("Vim:E5108: Error executing lua [string \"<nvim>\"]:10: attempt to call global 'nonexistent' (a nil value)", + eq("Vim:E5108: Error executing lua [string \"<nvim>\"]:0: attempt to call global 'nonexistent' (a nil value)", pcall_err(eval, 'v:lua.mymod.crashy()')) end) it('works in :call', function() command(":call v:lua.mymod.noisy('command')") eq("hey command", meths.get_current_line()) - eq("Vim(call):E5108: Error executing lua [string \"<nvim>\"]:10: attempt to call global 'nonexistent' (a nil value)", + eq("Vim(call):E5108: Error executing lua [string \"<nvim>\"]:0: attempt to call global 'nonexistent' (a nil value)", pcall_err(command, 'call v:lua.mymod.crashy()')) end) |