diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-16 20:56:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-16 20:56:57 +0000 |
commit | e124204c4f8ea8b4fe5357b7613092a7acb5feb8 (patch) | |
tree | 8a049a292b17314710048a1b17625416c2bfc8d6 /src/evalfunc.c | |
parent | 94c785d235dccacf6cdf38c5903115b61ca8a981 (diff) |
patch 8.2.3830: error messages are spread outv8.2.3830
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 25fcc45722..12236f73a5 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -2529,9 +2529,9 @@ check_internal_func(int idx, int argcount) name = internal_func_name(idx); if (res == FCERR_TOOMANY) - semsg(_(e_toomanyarg), name); + semsg(_(e_too_many_arguments_for_function_str), name); else - semsg(_(e_toofewarg), name); + semsg(_(e_not_enough_arguments_for_function_str), name); return -1; } @@ -4049,7 +4049,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref) arg_idx = 0; else if (list->lv_len > MAX_FUNC_ARGS) { - emsg_funcname((char *)e_toomanyarg, s); + emsg_funcname((char *)e_too_many_arguments_for_function_str, + s); vim_free(name); goto theend; } @@ -9012,7 +9013,7 @@ f_setreg(typval_T *argvars, typval_T *rettv) { if (yank_type != MAUTO) { - semsg(_(e_toomanyarg), "setreg"); + semsg(_(e_too_many_arguments_for_function_str), "setreg"); return; } |