0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4012: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move the last error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-05 20:24:39 +00:00
parent bb8cac56d9
commit d82a47dd04
34 changed files with 357 additions and 156 deletions

View File

@@ -1950,7 +1950,7 @@ ex_scriptversion(exarg_T *eap UNUSED)
if (!getline_equal(eap->getline, eap->cookie, getsourceline))
{
emsg(_("E984: :scriptversion used outside of a sourced file"));
emsg(_(e_scriptversion_used_outside_of_sourced_file));
return;
}
if (in_vim9script())
@@ -1963,7 +1963,7 @@ ex_scriptversion(exarg_T *eap UNUSED)
if (nr == 0 || *eap->arg != NUL)
emsg(_(e_invalid_argument));
else if (nr > SCRIPT_VERSION_MAX)
semsg(_("E999: scriptversion not supported: %d"), nr);
semsg(_(e_scriptversion_not_supported_nr), nr);
else
{
current_sctx.sc_version = nr;