From e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 20 Jul 2021 21:07:36 +0200 Subject: 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. --- src/ex_eval.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ex_eval.c') diff --git a/src/ex_eval.c b/src/ex_eval.c index 08ba858876..6491955d68 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -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; -- cgit v1.2.3