diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
commit | e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch) | |
tree | eb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/ex_eval.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) | |
download | vim-git-e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3.tar.gz |
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r-- | src/ex_eval.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c index 08ba85887..6491955d6 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; |