patch 8.2.3961: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/list.c b/src/list.c
index 838991b..42f9765 100644
--- a/src/list.c
+++ b/src/list.c
@@ -1658,7 +1658,7 @@
if (argvars[0].v_type != VAR_LIST)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return;
}
@@ -2128,7 +2128,7 @@
info->item_compare_func = tv_get_string(&argvars[1]);
else if (nr != 0)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return FAIL;
}
}
@@ -2670,7 +2670,7 @@
{
if (argvars[2].v_type != VAR_UNKNOWN
&& argvars[3].v_type != VAR_UNKNOWN)
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
else
n = dict_count(argvars[0].vval.v_dict, &argvars[1], ic);
}