summaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 19:59:55 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 19:59:55 +0000
commitf1474d801bbdb73406dd3d1f931f515f99e86dfa (patch)
treee69c4f4dcf990b7c13711f8b36e518117c14670e /src/alloc.c
parent6d0570117ac86b7979bf249de5741088212d6e17 (diff)
patch 8.2.3960: error messages are spread outv8.2.3960
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 20df46c00d..cb781b0779 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -224,7 +224,7 @@ lalloc(size_t size, int message)
{
// Don't hide this message
emsg_silent = 0;
- iemsg(_("E341: Internal error: lalloc(0, )"));
+ iemsg(_(e_internal_error_lalloc_zero));
return NULL;
}
@@ -339,7 +339,7 @@ do_outofmem_msg(size_t size)
// message fails, e.g. when setting v:errmsg.
did_outofmem_msg = TRUE;
- semsg(_("E342: Out of memory! (allocating %lu bytes)"), (long_u)size);
+ semsg(_(e_out_of_memory_allocating_nr_bytes), (long_u)size);
if (starting == NO_SCREEN)
// Not even finished with initializations and already out of