]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1509: error message lacks mentioning the erroneous argument v9.0.1509
authorBram Moolenaar <Bram@vim.org>
Fri, 5 May 2023 21:12:22 +0000 (22:12 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 5 May 2023 21:12:22 +0000 (22:12 +0100)
Problem:    Error message lacks mentioning the erroneous argument.
Solution:   Specify the argument that the error is for.

src/terminal.c
src/testdir/test_terminal.vim
src/version.c

index 683b74fa860815cdb1d579b91ed104068584d237..fde77219dc709efa1252f6b9eb8efe160fb42cc3 100644 (file)
@@ -6562,7 +6562,7 @@ f_term_setansicolors(typval_T *argvars, typval_T *rettv UNUSED)
     if (argvars[1].vval.v_list->lv_first == &range_list_item
            || argvars[1].vval.v_list->lv_len != 16)
     {
-       emsg(_(e_invalid_argument));
+       semsg(_(e_invalid_value_for_argument_str), "\"colors\"");
        return;
     }
 
index b0c29ecb2d4d879b883ad7e67236e11dee2bbadc..596ae5d32f76b1e24dc5b9d165e02bedba7b1118 100644 (file)
@@ -2188,6 +2188,7 @@ func Test_terminal_ansicolors_func()
   let colors[4] = 'Invalid'
   call assert_fails('call term_setansicolors(buf, colors)', 'E254:')
   call assert_fails('call term_setansicolors(buf, {})', 'E1211:')
+  call assert_fails('call term_setansicolors(buf, [])', 'E475: Invalid value for argument "colors"')
   set tgc&
 
   call StopShellInTerminal(buf)
index 5906b9a079a72d26a5ee66be99dd569d96401d98..8d673765e86ade35f0548a8057305741beabbfb4 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1509,
 /**/
     1508,
 /**/