aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2020-10-17 16:47:18 -0400
committerGitHub <noreply@github.com>2020-10-17 16:47:18 -0400
commit0ad5b34170920064a415cfcbb01960530ec5f615 (patch)
tree880ad5f5bdbe8c57123c403077f6ce432d5d5f95 /test/functional/plugin
parentbd80671786f59152d5ff19ca5ecd065ace067a51 (diff)
parent8e77d70e29f936f4e708ee3244046188b8ad0383 (diff)
downloadrneovim-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/plugin')
-rw-r--r--test/functional/plugin/lsp_spec.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index f514f4ea6f..f07a2d18a2 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -747,8 +747,16 @@ describe('LSP', function()
end)
it('should invalid cmd argument', function()
- eq('Error executing lua: .../shared.lua: cmd: expected list, got nvim', pcall_err(_cmd_parts, "nvim"))
- eq('Error executing lua: .../shared.lua: cmd argument: expected string, got number', pcall_err(_cmd_parts, {"nvim", 1}))
+ eq(dedent([[
+ Error executing lua: .../lsp.lua:0: cmd: expected list, got nvim
+ stack traceback:
+ .../lsp.lua:0: in function .../lsp.lua:0>]]),
+ pcall_err(_cmd_parts, 'nvim'))
+ eq(dedent([[
+ Error executing lua: .../lsp.lua:0: cmd argument: expected string, got number
+ stack traceback:
+ .../lsp.lua:0: in function .../lsp.lua:0>]]),
+ pcall_err(_cmd_parts, {'nvim', 1}))
end)
end)
end)