diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2021-08-23 02:37:07 -0700 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2025-05-04 11:22:57 -0400 |
| commit | fc2dee17368d76e7e845872990bb6fdef1c6bf54 (patch) | |
| tree | 6c8862b5b1d17c86bf3bc61065e1c9a8456cb415 /test/functional/vimscript/eval_spec.lua | |
| parent | af4f7f1618ad6e11d616b2c69af8945f46d0e199 (diff) | |
| download | rneovim-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.lua | 10 |
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) |