diff src/errors.h @ 30217:e0cb5fb44859 v9.0.0444

patch 9.0.0444: trying to declare g:variable gives confusing error Commit: https://github.com/vim/vim/commit/9510d22463055f56548ff461ccbc54caa1ba1a2f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 11 15:14:05 2022 +0100 patch 9.0.0444: trying to declare g:variable gives confusing error Problem: Trying to declare g:variable gives confusing error. Solution: Give a better error message. (closes https://github.com/vim/vim/issues/11108)
author Bram Moolenaar <Bram@vim.org>
date Sun, 11 Sep 2022 16:15:04 +0200
parents a3016780f346
children 43d942ff32ce
line wrap: on
line diff
--- a/src/errors.h
+++ b/src/errors.h
@@ -3335,4 +3335,6 @@ EXTERN char e_script_variable_was_delete
 	INIT(= N_("E1302: Script variable was deleted"));
 EXTERN char e_custom_list_completion_function_does_not_return_list_but_str[]
 	INIT(= N_("E1303: Custom list completion function does not return a List but a %s"));
-#endif
+EXTERN char e_cannot_use_type_with_this_variable_str[]
+	INIT(= N_("E1304: Cannot use type with this variable: %s"));
+#endif