diff src/vim9script.c @ 21789:f84625b961a8 v8.2.1444

patch 8.2.1444: error messages are spread out and names can be confusing Commit: https://github.com/vim/vim/commit/bc4c505166dc82911553206bb0c2133c6ac94aa1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 13 22:47:35 2020 +0200 patch 8.2.1444: error messages are spread out and names can be confusing Problem: Error messages are spread out and names can be confusing. Solution: Start moving error messages to a separate file and use clear names.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Aug 2020 23:00:04 +0200
parents d0c76ce48326
children 0deb6f96a5a3
line wrap: on
line diff
--- a/src/vim9script.c
+++ b/src/vim9script.c
@@ -513,7 +513,7 @@ vim9_declare_scriptvar(exarg_T *eap, cha
 
     if (eap->cmdidx == CMD_const)
     {
-	emsg(_(e_const_req_value));
+	emsg(_(e_const_requires_a_value));
 	return arg + STRLEN(arg);
     }
 
@@ -530,12 +530,12 @@ vim9_declare_scriptvar(exarg_T *eap, cha
 
     if (*p != ':')
     {
-	emsg(_(e_type_req));
+	emsg(_(e_type_or_initialization_required));
 	return arg + STRLEN(arg);
     }
     if (!VIM_ISWHITE(p[1]))
     {
-	semsg(_(e_white_after), ":");
+	semsg(_(e_white_space_required_after), ":");
 	return arg + STRLEN(arg);
     }
     name = vim_strnsave(arg, p - arg);