Mercurial > vim
diff src/userfunc.c @ 26877:06a137af96f8 v8.2.3967
patch 8.2.3967: error messages are spread out
Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 1 14:19:49 2022 +0000
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Jan 2022 15:30:05 +0100 |
parents | bce848ec8b1b |
children | 7f150a4936f2 |
line wrap: on
line diff
--- a/src/userfunc.c +++ b/src/userfunc.c @@ -3271,7 +3271,7 @@ user_func_error(int error, char_u *name, N_("E276: Cannot use function as a method: %s"), name); break; case FCERR_DELETED: - emsg_funcname(e_func_deleted, name); + emsg_funcname(e_function_was_deleted_str, name); break; case FCERR_TOOMANY: emsg_funcname((char *)e_too_many_arguments_for_function_str, @@ -4127,7 +4127,7 @@ define_function(exarg_T *eap, char_u *na if (!aborting()) { if (!eap->skip && fudi.fd_newkey != NULL) - semsg(_(e_dictkey), fudi.fd_newkey); + semsg(_(e_key_not_present_in_dictionary), fudi.fd_newkey); vim_free(fudi.fd_newkey); return NULL; } @@ -4224,7 +4224,7 @@ define_function(exarg_T *eap, char_u *na // In Vim9 script only global functions can be redefined. if (vim9script && eap->forceit && !is_global) { - emsg(_(e_nobang)); + emsg(_(e_no_bang_allowed)); goto ret_free; } @@ -5145,7 +5145,7 @@ ex_call(exarg_T *eap) if (fudi.fd_newkey != NULL) { // Still need to give an error message for missing key. - semsg(_(e_dictkey), fudi.fd_newkey); + semsg(_(e_key_not_present_in_dictionary), fudi.fd_newkey); vim_free(fudi.fd_newkey); } if (tofree == NULL)