From f1474d801bbdb73406dd3d1f931f515f99e86dfa Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 31 Dec 2021 19:59:55 +0000 Subject: patch 8.2.3960: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h. --- src/alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/alloc.c') 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 -- cgit v1.2.3