Problem: Error message lacks mentioning the erroneous argument.
Solution: Specify the argument that the error is for.
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;
}
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)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1509,
/**/
1508,
/**/