From fc2dee17368d76e7e845872990bb6fdef1c6bf54 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 23 Aug 2021 02:37:07 -0700 Subject: feat(messages): cleanup Lua error messages "Error" in error messages is redundant. Just provide the context, don't say "Error ...". --- test/functional/vimscript/eval_spec.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/functional/vimscript/eval_spec.lua') 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 ""]:2: oops} | + {9:Error in :} | + {9:E5108: Lua: [string ""]:2: oops} | {9:stack traceback:} | {9: [C]: in function 'error'} | {9: [string ""]:2: in function 'Oops'} | {9: [string ":lua"]:1: in main chunk} | {6:Press ENTER or type command to continue}^ | - ]], - } + ]]) end) end) -- cgit