patch 8.2.4246: one error message not in errors.h
Problem: One error message not in errors.h. (Antonio Colombo)
Solution: Move the message and rename.
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 37b9cb2..c717770 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1030,7 +1030,6 @@
#ifdef DYNAMIC_PERL
static char *e_noperl = N_("Sorry, this command is disabled: the Perl library could not be loaded.");
#endif
-static char *e_perlsandbox = N_("E299: Perl evaluation forbidden in sandbox without the Safe module");
/*
* ":perl"
@@ -1084,7 +1083,7 @@
safe = perl_get_sv("VIM::safe", FALSE);
# ifndef MAKE_TEST /* avoid a warning for unreachable code */
if (safe == NULL || !SvTRUE(safe))
- emsg(_(e_perlsandbox));
+ emsg(_(e_perl_evaluation_forbidden_in_sandbox_without_safe_module));
else
# endif
{
@@ -1361,7 +1360,7 @@
safe = get_sv("VIM::safe", FALSE);
# ifndef MAKE_TEST /* avoid a warning for unreachable code */
if (safe == NULL || !SvTRUE(safe))
- emsg(_(e_perlsandbox));
+ emsg(_(e_perl_evaluation_forbidden_in_sandbox_without_safe_module));
else
# endif
{