patch 8.2.3977: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more error messages to errors.h.
This commit is contained in:
Bram Moolenaar
2022-01-01 21:59:18 +00:00
parent b34689010a
commit 9a846fbaa5
20 changed files with 147 additions and 43 deletions

View File

@ -327,7 +327,7 @@ ml_open(buf_T *buf)
goto error;
if (hp->bh_bnum != 0)
{
iemsg(_("E298: Didn't get block nr 0?"));
iemsg(_(e_didnt_get_block_nr_zero));
goto error;
}
b0p = (ZERO_BL *)(hp->bh_data);
@ -377,7 +377,7 @@ ml_open(buf_T *buf)
goto error;
if (hp->bh_bnum != 1)
{
iemsg(_("E298: Didn't get block nr 1?"));
iemsg(_(e_didnt_get_block_nr_one));
goto error;
}
pp = (PTR_BL *)(hp->bh_data);
@ -395,7 +395,7 @@ ml_open(buf_T *buf)
goto error;
if (hp->bh_bnum != 2)
{
iemsg(_("E298: Didn't get block nr 2?"));
iemsg(_(e_didnt_get_block_nr_two));
goto error;
}