aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/overrides_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/lua/overrides_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/lua/overrides_spec.lua')
-rw-r--r--test/functional/lua/overrides_spec.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/lua/overrides_spec.lua b/test/functional/lua/overrides_spec.lua
index 636479b81f..b0712ff366 100644
--- a/test/functional/lua/overrides_spec.lua
+++ b/test/functional/lua/overrides_spec.lua
@@ -161,15 +161,15 @@ describe('debug.debug', function()
{0:~ }|
{0:~ }|
{0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
nil |
lua_debug> print("TEST") |
TEST |
|
{E:E5108: Error executing lua [string ":lua"]:5: attempt}|
{E: to perform arithmetic on local 'a' (a nil value)} |
+ {E:stack traceback:} |
+ {E: [string ":lua"]:5: in function 'Test'} |
+ {E: [string ":lua"]:1: in main chunk} |
Interrupt: {cr:Press ENTER or type command to continue}^ |
]]}
feed('<C-l>:lua Test()\n')
@@ -197,13 +197,13 @@ describe('debug.debug', function()
{0:~ }|
{0:~ }|
{0:~ }|
- {0:~ }|
- {0:~ }|
- {0:~ }|
nil |
lua_debug> |
{E:E5108: Error executing lua [string ":lua"]:5: attempt}|
{E: to perform arithmetic on local 'a' (a nil value)} |
+ {E:stack traceback:} |
+ {E: [string ":lua"]:5: in function 'Test'} |
+ {E: [string ":lua"]:1: in main chunk} |
{cr:Press ENTER or type command to continue}^ |
]]}
end)