summaryrefslogtreecommitdiff
path: root/src/if_perl.xs
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-28 21:00:51 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-28 21:00:51 +0000
commite96eea7b6a56bc7c12e062e90b2e816ff61e705c (patch)
treebb55f176979904ea0a963e60470933123e61ee15 /src/if_perl.xs
parent652dee448618589de5528a9e9a36995803f5557a (diff)
downloadvim-git-e96eea7b6a56bc7c12e062e90b2e816ff61e705c.tar.gz
patch 8.2.4246: one error message not in errors.hv8.2.4246
Problem: One error message not in errors.h. (Antonio Colombo) Solution: Move the message and rename.
Diffstat (limited to 'src/if_perl.xs')
-rw-r--r--src/if_perl.xs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/if_perl.xs b/src/if_perl.xs
index 37b9cb292..c7177700f 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -1030,7 +1030,6 @@ VIM_init(void)
#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 @@ ex_perl(exarg_T *eap)
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 @@ do_perleval(char_u *str, typval_T *rettv)
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
{