1
0
forked from aniani/vim

patch 8.2.3830: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2021-12-16 20:56:57 +00:00
parent 94c785d235
commit e124204c4f
19 changed files with 137 additions and 74 deletions

View File

@@ -1668,7 +1668,7 @@ eval_option(
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 @@ eval_option(
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 @@ eval_string(char_u **arg, typval_T *rettv, int evaluate)
if (*p != '"')
{
semsg(_("E114: Missing quote: %s"), *arg);
semsg(_(e_missing_double_quote_str), *arg);
return FAIL;
}
@@ -2027,7 +2027,7 @@ eval_lit_string(char_u **arg, typval_T *rettv, int evaluate)
if (*p != '\'')
{
semsg(_("E115: Missing quote: %s"), *arg);
semsg(_(e_missing_single_quote_str), *arg);
return FAIL;
}