patch 9.0.1509: error message lacks mentioning the erroneous argument
Problem: Error message lacks mentioning the erroneous argument. Solution: Specify the argument that the error is for.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1509,
|
||||
/**/
|
||||
1508,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user