patch 9.0.0345: error message for list argument could be clearer
Problem: Error message for list argument could be clearer.
Solution: Include the argument number. (Yegappan Lakshmanan, closes #11027)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 9cbd413..c7cf322 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3235,11 +3235,8 @@
|| check_for_opt_dict_arg(argvars, 2) == FAIL))
return;
- if (argvars[1].v_type != VAR_LIST)
- {
- emsg(_(e_list_required));
+ if (check_for_list_arg(argvars, 1) == FAIL)
return;
- }
if (argvars[1].vval.v_list == NULL)
return;