0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-31 22:49:24 +00:00
parent f1474d801b
commit 436b5adc97
62 changed files with 427 additions and 403 deletions

View File

@@ -965,7 +965,7 @@ ExpandPackAddDir(
cmd_source(char_u *fname, exarg_T *eap)
{
if (*fname == NUL)
emsg(_(e_argreq));
emsg(_(e_argument_required));
else if (eap != NULL && eap->forceit)
// ":source!": read Normal mode commands
@@ -1441,7 +1441,7 @@ do_source(
#endif
if (got_int)
emsg(_(e_interr));
emsg(_(e_interrupted));
ESTACK_CHECK_NOW
estack_pop();
if (p_verbose > 1)
@@ -1549,7 +1549,7 @@ ex_scriptnames(exarg_T *eap)
{
// :script {scriptId}: edit the script
if (!SCRIPT_ID_VALID(eap->line2))
emsg(_(e_invarg));
emsg(_(e_invalid_argument));
else
{
eap->arg = SCRIPT_ITEM(eap->line2)->sn_name;
@@ -1961,7 +1961,7 @@ ex_scriptversion(exarg_T *eap UNUSED)
nr = getdigits(&eap->arg);
if (nr == 0 || *eap->arg != NUL)
emsg(_(e_invarg));
emsg(_(e_invalid_argument));
else if (nr > SCRIPT_VERSION_MAX)
semsg(_("E999: scriptversion not supported: %d"), nr);
else