1
0
forked from aniani/vim

patch 8.2.4005: 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
2022-01-04 21:30:47 +00:00
parent 548911ee14
commit a6f7929e62
25 changed files with 196 additions and 78 deletions

View File

@@ -1542,7 +1542,7 @@ eval_list(char_u **arg, typval_T *rettv, evalarg_T *evalarg, int do_error)
semsg(_(e_no_white_space_allowed_before_str_str),
",", *arg);
else
semsg(_("E696: Missing comma in List: %s"), *arg);
semsg(_(e_missing_comma_in_list_str), *arg);
}
goto failret;
}
@@ -2002,7 +2002,7 @@ do_sort(list_T *l, sortinfo_T *info)
|| info->item_compare_partial != NULL)
&& item_compare2((void *)&ptrs[0], (void *)&ptrs[1])
== ITEM_COMPARE_FAIL)
emsg(_("E702: Sort compare function failed"));
emsg(_(e_sort_compare_function_failed));
else
{
// Sort the array with item pointers.