aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/eval_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-08-23 02:37:07 -0700
committerJustin M. Keyes <justinkz@gmail.com>2025-05-04 11:22:57 -0400
commitfc2dee17368d76e7e845872990bb6fdef1c6bf54 (patch)
tree6c8862b5b1d17c86bf3bc61065e1c9a8456cb415 /test/functional/vimscript/eval_spec.lua
parentaf4f7f1618ad6e11d616b2c69af8945f46d0e199 (diff)
downloadrneovim-fc2dee17368d76e7e845872990bb6fdef1c6bf54.tar.gz
rneovim-fc2dee17368d76e7e845872990bb6fdef1c6bf54.tar.bz2
rneovim-fc2dee17368d76e7e845872990bb6fdef1c6bf54.zip
feat(messages): cleanup Lua error messages
"Error" in error messages is redundant. Just provide the context, don't say "Error ...".
Diffstat (limited to 'test/functional/vimscript/eval_spec.lua')
-rw-r--r--test/functional/vimscript/eval_spec.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/vimscript/eval_spec.lua b/test/functional/vimscript/eval_spec.lua
index 2a4835f7e1..bdea40b4e4 100644
--- a/test/functional/vimscript/eval_spec.lua
+++ b/test/functional/vimscript/eval_spec.lua
@@ -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)