patch 8.2.3830: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/typval.c b/src/typval.c
index 5e1c78c..e6f6bfc 100644
--- a/src/typval.c
+++ b/src/typval.c
@@ -1668,7 +1668,7 @@
if (option_end == NULL)
{
if (rettv != NULL)
- semsg(_("E112: Option name missing: %s"), *arg);
+ semsg(_(e_option_name_missing_str), *arg);
return FAIL;
}
@@ -1686,7 +1686,7 @@
if (opt_type == gov_unknown)
{
if (rettv != NULL)
- semsg(_(e_unknown_option), *arg);
+ semsg(_(e_unknown_option_str), *arg);
ret = FAIL;
}
else if (rettv != NULL)
@@ -1887,7 +1887,7 @@
if (*p != '"')
{
- semsg(_("E114: Missing quote: %s"), *arg);
+ semsg(_(e_missing_double_quote_str), *arg);
return FAIL;
}
@@ -2027,7 +2027,7 @@
if (*p != '\'')
{
- semsg(_("E115: Missing quote: %s"), *arg);
+ semsg(_(e_missing_single_quote_str), *arg);
return FAIL;
}