patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/os_win32.c b/src/os_win32.c
index b0ff1bb..e4ebc0c 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -716,7 +716,7 @@
if (p_verbose > 0)
{
verbose_enter();
- semsg(_(e_loadlib), GETTEXT_DLL, GetWin32Error());
+ semsg(_(e_could_not_load_library_str_str), GETTEXT_DLL, GetWin32Error());
verbose_leave();
}
return 0;
@@ -731,7 +731,7 @@
if (p_verbose > 0)
{
verbose_enter();
- semsg(_(e_loadfunc), libintl_entry[i].name);
+ semsg(_(e_could_not_load_library_function_str), libintl_entry[i].name);
verbose_leave();
}
return 0;
@@ -5311,7 +5311,7 @@
&saAttr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL);
if (ifd[0] == INVALID_HANDLE_VALUE)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
goto failed;
}
}
@@ -5329,7 +5329,7 @@
&saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL);
if (ofd[1] == INVALID_HANDLE_VALUE)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
goto failed;
}
}
@@ -5347,7 +5347,7 @@
&saAttr, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL);
if (efd[1] == INVALID_HANDLE_VALUE)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
goto failed;
}
}