summaryrefslogtreecommitdiff
path: root/src/spellfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-05 22:19:27 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-05 22:19:27 +0000
commit40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 (patch)
treebe6586866cf712e434252f74b185d35f6a49eed3 /src/spellfile.c
parent4700398e384f38f752b432e187462f404b96847d (diff)
downloadvim-git-40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00.tar.gz
patch 8.2.3750: error messages are everywherev8.2.3750
Problem: Error messages are everywhere. Solution: Move more error messages to errors.h and adjust the names.
Diffstat (limited to 'src/spellfile.c')
-rw-r--r--src/spellfile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/spellfile.c b/src/spellfile.c
index 0d7b194aa..6d6c248ab 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -5259,7 +5259,7 @@ theend:
if (fwv != (size_t)1)
retval = FAIL;
if (retval == FAIL)
- emsg(_(e_write));
+ emsg(_(e_error_while_writing));
return retval;
}
@@ -5404,7 +5404,7 @@ put_node(
if (fd != NULL)
if (putc(np->wn_byte, fd) == EOF) // <byte> or <xbyte>
{
- emsg(_(e_write));
+ emsg(_(e_error_while_writing));
return 0;
}
}
@@ -5815,7 +5815,7 @@ sug_write(spellinfo_T *spin, char_u *fname)
*/
if (fwrite(VIMSUGMAGIC, VIMSUGMAGICL, (size_t)1, fd) != 1) // <fileID>
{
- emsg(_(e_write));
+ emsg(_(e_error_while_writing));
goto theend;
}
putc(VIMSUGVERSION, fd); // <versionnr>
@@ -5857,7 +5857,7 @@ sug_write(spellinfo_T *spin, char_u *fname)
len = (int)STRLEN(line) + 1;
if (fwrite(line, (size_t)len, (size_t)1, fd) == 0)
{
- emsg(_(e_write));
+ emsg(_(e_error_while_writing));
goto theend;
}
spin->si_memtot += len;
@@ -5865,7 +5865,7 @@ sug_write(spellinfo_T *spin, char_u *fname)
// Write another byte to check for errors.
if (putc(0, fd) == EOF)
- emsg(_(e_write));
+ emsg(_(e_error_while_writing));
vim_snprintf((char *)IObuff, IOSIZE,
_("Estimated runtime memory use: %d bytes"), spin->si_memtot);