summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-13 22:47:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-13 22:47:35 +0200
commitbc4c505166dc82911553206bb0c2133c6ac94aa1 (patch)
tree14a6624ace74cef5d79c55c818012042fef3d03e /src/errors.h
parentcdd70f09a5340c3d7ae873f1aaaf9847f27410cc (diff)
patch 8.2.1444: error messages are spread out and names can be confusingv8.2.1444
Problem: Error messages are spread out and names can be confusing. Solution: Start moving error messages to a separate file and use clear names.
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h
new file mode 100644
index 0000000000..f613276008
--- /dev/null
+++ b/src/errors.h
@@ -0,0 +1,36 @@
+/* vi:set ts=8 sts=4 sw=4 noet:
+ *
+ * VIM - Vi IMproved by Bram Moolenaar
+ *
+ * Do ":help uganda" in Vim to read copying and usage conditions.
+ * Do ":help credits" in Vim to see a list of people who contributed.
+ */
+
+/*
+ * Definition of error messages, sorted on error number.
+ */
+
+#ifdef FEAT_EVAL
+EXTERN char e_white_space_required_before_and_after[]
+ INIT(= N_("E1004: white space required before and after '%s'"));
+EXTERN char e_cannot_declare_a_scope_variable[]
+ INIT(= N_("E1016: Cannot declare a %s variable: %s"));
+EXTERN char e_cannot_declare_an_environment_variable[]
+ INIT(= N_("E1016: Cannot declare an environment variable: %s"));
+EXTERN char e_const_requires_a_value[]
+ INIT(= N_("E1021: const requires a value"));
+EXTERN char e_type_or_initialization_required[]
+ INIT(= N_("E1022: type or initialization required"));
+EXTERN char e_colon_required_before_a_range[]
+ INIT(= N_("E1050: Colon required before a range"));
+EXTERN char e_no_white_space_allowed_before[]
+ INIT(= N_("E1068: No white space allowed before '%s'"));
+EXTERN char e_white_space_required_after[]
+ INIT(= N_("E1069: white space required after '%s'"));
+EXTERN char e_name_already_defined[]
+ INIT(= N_("E1073: name already defined: %s"));
+EXTERN char e_list_dict_or_blob_required[]
+ INIT(= N_("E1090: List, Dict or Blob required"));
+EXTERN char e_dictionary_not_set[]
+ INIT(= N_("E1103: Dictionary not set"));
+#endif