summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
commit436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch)
tree623dc85ee9a396b16f939f44d38138f882edc229 /src/list.c
parentf1474d801bbdb73406dd3d1f931f515f99e86dfa (diff)
downloadvim-git-436b5adc9770a2568209dd5ab1f98bd1afc91898.tar.gz
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/list.c b/src/list.c
index 838991b73..42f9765a5 100644
--- a/src/list.c
+++ b/src/list.c
@@ -1658,7 +1658,7 @@ f_list2str(typval_T *argvars, typval_T *rettv)
if (argvars[0].v_type != VAR_LIST)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return;
}
@@ -2128,7 +2128,7 @@ parse_sort_uniq_args(typval_T *argvars, sortinfo_T *info)
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 @@ f_count(typval_T *argvars, typval_T *rettv)
{
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);
}