0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 8.2.3190: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move error messages to errors.h and give them a clear name.
This commit is contained in:
Bram Moolenaar
2021-07-20 21:07:36 +02:00
parent 9fa5dabedc
commit e29a27f6f8
29 changed files with 127 additions and 98 deletions

View File

@@ -255,7 +255,7 @@ cause_errthrow(
if (elem == NULL)
{
suppress_errthrow = TRUE;
emsg(_(e_outofmem));
emsg(_(e_out_of_memory));
}
else
{
@@ -264,7 +264,7 @@ cause_errthrow(
{
vim_free(elem);
suppress_errthrow = TRUE;
emsg(_(e_outofmem));
emsg(_(e_out_of_memory));
}
else
{
@@ -592,7 +592,7 @@ throw_exception(void *value, except_type_T type, char_u *cmdname)
nomem:
vim_free(excp);
suppress_errthrow = TRUE;
emsg(_(e_outofmem));
emsg(_(e_out_of_memory));
fail:
current_exception = NULL;
return FAIL;
@@ -1639,7 +1639,7 @@ ex_try(exarg_T *eap)
elem = ALLOC_ONE(struct eslist_elem);
if (elem == NULL)
emsg(_(e_outofmem));
emsg(_(e_out_of_memory));
else
{
elem->saved_emsg_silent = emsg_silent;