mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
feat(lua): enable stack traces in error output (#16228)
This commit is contained in:
@@ -157,9 +157,6 @@ describe('debug.debug', function()
|
||||
]])
|
||||
feed('<C-c>')
|
||||
screen:expect{grid=[[
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
{0:~ }|
|
||||
@@ -170,6 +167,9 @@ describe('debug.debug', function()
|
||||
|
|
||||
{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)
|
||||
|
Reference in New Issue
Block a user