aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/lsp_spec.lua
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2021-11-06 08:26:10 -0600
committerGitHub <noreply@github.com>2021-11-06 08:26:10 -0600
commit03b805aee617f67eb7f33a54822bc76c23a2c5f5 (patch)
treefc27127d462fe91159eb99c5a724c7b10e459f1b /test/functional/plugin/lsp_spec.lua
parent1fdbd29dfa6366f8346693d0bf67f4f782ab0f32 (diff)
downloadrneovim-03b805aee617f67eb7f33a54822bc76c23a2c5f5.tar.gz
rneovim-03b805aee617f67eb7f33a54822bc76c23a2c5f5.tar.bz2
rneovim-03b805aee617f67eb7f33a54822bc76c23a2c5f5.zip
feat(lua): enable stack traces in error output (#16228)
Diffstat (limited to 'test/functional/plugin/lsp_spec.lua')
-rw-r--r--test/functional/plugin/lsp_spec.lua10
1 files changed, 2 insertions, 8 deletions
diff --git a/test/functional/plugin/lsp_spec.lua b/test/functional/plugin/lsp_spec.lua
index 37fba02e0e..c025e9f4ab 100644
--- a/test/functional/plugin/lsp_spec.lua
+++ b/test/functional/plugin/lsp_spec.lua
@@ -1153,15 +1153,9 @@ describe('LSP', function()
end)
it('should invalid cmd argument', function()
- eq(dedent([[
- Error executing lua: .../lsp.lua:0: cmd: expected list, got nvim
- stack traceback:
- .../lsp.lua:0: in function <.../lsp.lua:0>]]),
+ eq('Error executing lua: .../lsp.lua:0: cmd: expected list, got nvim',
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>]]),
+ eq('Error executing lua: .../lsp.lua:0: cmd argument: expected string, got number',
pcall_err(_cmd_parts, {'nvim', 1}))
end)
end)