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/spellfile.c b/src/spellfile.c
index dc6647a..4aa60e4 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -365,11 +365,11 @@
if (fd == NULL)
{
if (!silent)
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
else if (p_verbose > 2)
{
verbose_enter();
- smsg((const char *)e_notopen, fname);
+ smsg((const char *)e_cant_open_file_str, fname);
verbose_leave();
}
goto endFAIL;
@@ -2226,7 +2226,7 @@
fd = mch_fopen((char *)fname, "r");
if (fd == NULL)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
return NULL;
}
@@ -3520,7 +3520,7 @@
fd = mch_fopen((char *)fname, "r");
if (fd == NULL)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
return FAIL;
}
@@ -4104,7 +4104,7 @@
fd = mch_fopen((char *)fname, "r");
if (fd == NULL)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
return FAIL;
}
@@ -4873,7 +4873,7 @@
fd = mch_fopen((char *)fname, "w");
if (fd == NULL)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
return FAIL;
}
@@ -5802,7 +5802,7 @@
fd = mch_fopen((char *)fname, "w");
if (fd == NULL)
{
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
return;
}
@@ -6316,7 +6316,7 @@
}
if (fd == NULL)
- semsg(_(e_notopen), fname);
+ semsg(_(e_cant_open_file_str), fname);
else
{
if (what == SPELL_ADD_BAD)