patch 8.2.3985: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
diff --git a/src/findfile.c b/src/findfile.c
index ef9166b..cc0cc6e 100644
--- a/src/findfile.c
+++ b/src/findfile.c
@@ -2007,7 +2007,7 @@
if (*ptr == NUL) // nothing found
{
if (options & FNAME_MESS)
- emsg(_("E446: No file name under cursor"));
+ emsg(_(e_no_file_name_under_cursor));
return NULL;
}
@@ -2165,7 +2165,7 @@
{
c = ptr[len];
ptr[len] = NUL;
- semsg(_("E447: Can't find file \"%s\" in path"), ptr);
+ semsg(_(e_cant_find_file_str_in_path_2), ptr);
ptr[len] = c;
}