1
0
forked from aniani/vim

patch 8.2.3749: error messages are everywhere

Problem:    Error messages are everywhere.
Solution:   Move more error messages to errors.h and adjust the names.
This commit is contained in:
Bram Moolenaar
2021-12-05 21:46:34 +00:00
parent e5710a02cb
commit 12f3c1b77f
11 changed files with 57 additions and 33 deletions

View File

@@ -242,7 +242,7 @@ mf_close(memfile_T *mfp, int del_file)
if (mfp->mf_fd >= 0)
{
if (close(mfp->mf_fd) < 0)
emsg(_(e_swapclose));
emsg(_(e_close_error_on_swap_file));
}
if (del_file && mfp->mf_fname != NULL)
mch_remove(mfp->mf_fname);
@@ -288,7 +288,7 @@ mf_close_file(
}
if (close(mfp->mf_fd) < 0) // close the file
emsg(_(e_swapclose));
emsg(_(e_close_error_on_swap_file));
mfp->mf_fd = -1;
if (mfp->mf_fname != NULL)