Mercurial > vim
diff src/vim9execute.c @ 26602:fac6673086df v8.2.3830
patch 8.2.3830: error messages are spread out
Commit: https://github.com/vim/vim/commit/e124204c4f8ea8b4fe5357b7613092a7acb5feb8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 16 20:56:57 2021 +0000
patch 8.2.3830: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Dec 2021 22:00:05 +0100 |
parents | 454a1c9ef797 |
children | bdf11d8e3df3 |
line wrap: on
line diff
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -906,9 +906,10 @@ call_ufunc( if (error != FCERR_UNKNOWN) { if (error == FCERR_TOOMANY) - semsg(_(e_toomanyarg), ufunc->uf_name); + semsg(_(e_too_many_arguments_for_function_str), ufunc->uf_name); else - semsg(_(e_toofewarg), ufunc->uf_name); + semsg(_(e_not_enough_arguments_for_function_str), + ufunc->uf_name); return FAIL; } @@ -1106,7 +1107,7 @@ call_partial( if (res == FAIL) { if (called_emsg == called_emsg_before) - semsg(_(e_unknownfunc), + semsg(_(e_unknown_function_str), name == NULL ? (char_u *)"[unknown]" : name); return FAIL; } @@ -1460,12 +1461,12 @@ call_eval_func( v = find_var(name, NULL, FALSE); if (v == NULL) { - semsg(_(e_unknownfunc), name); + semsg(_(e_unknown_function_str), name); return FAIL; } if (v->di_tv.v_type != VAR_PARTIAL && v->di_tv.v_type != VAR_FUNC) { - semsg(_(e_unknownfunc), name); + semsg(_(e_unknown_function_str), name); return FAIL; } return call_partial(&v->di_tv, argcount, ectx);