feat(messages): cleanup Lua error messages

"Error" in error messages is redundant. Just provide the context, don't
say "Error ...".
This commit is contained in:
Justin M. Keyes
2021-08-23 02:37:07 -07:00
parent af4f7f1618
commit fc2dee1736
42 changed files with 302 additions and 377 deletions

View File

@@ -193,21 +193,19 @@ describe('uncaught exception', function()
end
]])
feed(':try\rlua _G.Oops()\rendtry\r')
screen:expect {
grid = [[
screen:expect([[
{3: }|
:try |
: lua _G.Oops() |
: endtry |
{9:Error detected while processing :} |
{9:E5108: Error executing lua [string "<nvim>"]:2: oops} |
{9:Error in :} |
{9:E5108: Lua: [string "<nvim>"]:2: oops} |
{9:stack traceback:} |
{9: [C]: in function 'error'} |
{9: [string "<nvim>"]:2: in function 'Oops'} |
{9: [string ":lua"]:1: in main chunk} |
{6:Press ENTER or type command to continue}^ |
]],
}
]])
end)
end)