patch 8.2.3970: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/vim9expr.c b/src/vim9expr.c
index d2e84a8..ff106d1 100644
--- a/src/vim9expr.c
+++ b/src/vim9expr.c
@@ -517,7 +517,7 @@
|| GA_GROW_FAILS(&cctx->ctx_instr, 1))
{
if (trailing_error)
- semsg(_(e_trailing_arg), s);
+ semsg(_(e_trailing_characters_str), s);
clear_instr_ga(&cctx->ctx_instr);
cctx->ctx_instr = save_ga;
++cctx->ctx_type_stack.ga_len;
@@ -1090,7 +1090,7 @@
item = dict_find(d, key, -1);
if (item != NULL)
{
- semsg(_(e_duplicate_key), key);
+ semsg(_(e_duplicate_key_in_dicitonary), key);
goto failret;
}
item = dictitem_alloc(key);
@@ -1108,7 +1108,7 @@
if (*skipwhite(*arg) == ':')
semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg);
else
- semsg(_(e_missing_dict_colon), *arg);
+ semsg(_(e_missing_colon_in_dictionary), *arg);
return FAIL;
}
whitep = *arg + 1;
@@ -1140,7 +1140,7 @@
break;
if (**arg != ',')
{
- semsg(_(e_missing_dict_comma), *arg);
+ semsg(_(e_missing_comma_in_dictionary), *arg);
goto failret;
}
if (IS_WHITE_OR_NUL(*whitep))
@@ -1711,7 +1711,7 @@
p = *arg;
if (!eval_isnamec1(*p))
{
- semsg(_(e_trailing_arg), pstart);
+ semsg(_(e_trailing_characters_str), pstart);
return FAIL;
}
if (ASCII_ISALPHA(*p) && p[1] == ':')