patch 8.2.4012: error messages are spread out
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
diff --git a/src/viminfo.c b/src/viminfo.c
index 9cf1526..3f9e5f3 100644
--- a/src/viminfo.c
+++ b/src/viminfo.c
@@ -3220,8 +3220,7 @@
{
// They all exist? Must be something wrong! Don't write
// the viminfo file then.
- semsg(_("E929: Too many viminfo temp files, like %s!"),
- tempname);
+ semsg(_(e_too_many_viminfo_temp_files_like_str), tempname);
break;
}
*wp = next_char;
@@ -3293,7 +3292,7 @@
if (vim_rename(tempname, fname) == -1)
{
++viminfo_errcnt;
- semsg(_("E886: Can't rename viminfo file to %s!"), fname);
+ semsg(_(e_cant_rename_viminfo_file_to_str), fname);
}
# ifdef MSWIN
// If the viminfo file was hidden then also hide the new file.