vim-patch:8.2.1697: inconsistent capitalization of error messages (#23476)

Problem:    Inconsistent capitalization of error messages.
Solution:   Always start with a capital.

7707228aac

Most of these errors are Vim9 script only.

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2023-05-04 23:17:43 +08:00
committed by GitHub
parent fe7cdc7cc0
commit b16729f816
4 changed files with 12 additions and 10 deletions

View File

@@ -240,35 +240,35 @@ func Test_assert_fail_fails()
catch
let exp = v:exception
endtry
call assert_match("E856: assert_fails() second argument", exp)
call assert_match("E856: \"assert_fails()\" second argument", exp)
try
call assert_equal(1, assert_fails('xxx', ['1', '2', '3']))
catch
let exp = v:exception
endtry
call assert_match("E856: assert_fails() second argument", exp)
call assert_match("E856: \"assert_fails()\" second argument", exp)
try
call assert_equal(1, assert_fails('xxx', #{one: 1}))
catch
let exp = v:exception
endtry
call assert_match("E856: assert_fails() second argument", exp)
call assert_match("E856: \"assert_fails()\" second argument", exp)
try
call assert_equal(1, assert_fails('xxx', 'E492', '', 'burp'))
catch
let exp = v:exception
endtry
call assert_match("E1115: assert_fails() fourth argument must be a number", exp)
call assert_match("E1115: \"assert_fails()\" fourth argument must be a number", exp)
try
call assert_equal(1, assert_fails('xxx', 'E492', '', 54, 123))
catch
let exp = v:exception
endtry
call assert_match("E1116: assert_fails() fifth argument must be a string", exp)
call assert_match("E1116: \"assert_fails()\" fifth argument must be a string", exp)
endfunc
func Test_assert_fails_in_try_block()