diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/scriptfile.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) | |
download | vim-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/scriptfile.c')
-rw-r--r-- | src/scriptfile.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scriptfile.c b/src/scriptfile.c index 7d0c27248..b9322587a 100644 --- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -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 |