patch 8.2.3970: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-01 15:58:22 +00:00
parent 56200eed62
commit 74409f6279
39 changed files with 161 additions and 131 deletions

View File

@ -4660,7 +4660,7 @@ skip_add:
if ((long)(newsize >> 10) >= p_mmp)
{
emsg(_(e_maxmempat));
emsg(_(e_pattern_uses_more_memory_than_maxmempattern));
--depth;
return NULL;
}
@ -5002,7 +5002,7 @@ addstate_here(
if ((long)(newsize >> 10) >= p_mmp)
{
emsg(_(e_maxmempat));
emsg(_(e_pattern_uses_more_memory_than_maxmempattern));
return NULL;
}
newl = alloc(newsize);