patch 8.2.3961: error messages are spread out
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
diff --git a/src/misc2.c b/src/misc2.c
index 4400d4a..3a8012a 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1375,7 +1375,7 @@
vim_str2nr(bp + 5, NULL, &l, STR2NR_ALL, NULL, NULL, 0, TRUE);
if (l == 0)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return 0;
}
bp += l + 5;
@@ -1413,7 +1413,7 @@
&n, 0, TRUE);
if (l == 0)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return 0;
}
key = (int)n;