summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-31 11:37:57 +0100
committerBram Moolenaar <Bram@vim.org>2022-03-31 11:37:57 +0100
commit4dea2d92e4c308b064ed1dd7b2ba7527a0d6b0a0 (patch)
treea7be19a7aa8b4a9c4e48084639ad51db96f36db6 /src/errors.h
parentd1d2684c8006105444d249e846576c23d79ad4ee (diff)
patch 8.2.4653: "import autoload" does not check the file namev8.2.4653
Problem: "import autoload" does not check the file name. Solution: Give an error if the file is not readable. (closes #10049)
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/errors.h b/src/errors.h
index 949a532794..951acabb29 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -30,8 +30,9 @@ EXTERN char e_invalid_expression_str[]
#endif
EXTERN char e_invalid_range[]
INIT(= N_("E16: Invalid range"));
-#if defined(UNIX) || defined(FEAT_SYN_HL) || defined(FEAT_SPELL)
-EXTERN char e_src_is_directory[]
+#if defined(UNIX) || defined(FEAT_SYN_HL) \
+ || defined(FEAT_SPELL) || defined(FEAT_EVAL)
+EXTERN char e_str_is_directory[]
INIT(= N_("E17: \"%s\" is a directory"));
#endif
#ifdef FEAT_EVAL