summaryrefslogtreecommitdiffstats
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-31 22:49:24 +0000
commit436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch)
tree623dc85ee9a396b16f939f44d38138f882edc229 /src/misc2.c
parentf1474d801bbdb73406dd3d1f931f515f99e86dfa (diff)
patch 8.2.3961: error messages are spread outv8.2.3961
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
Diffstat (limited to 'src/misc2.c')
-rw-r--r--src/misc2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc2.c b/src/misc2.c
index 4400d4aa56..3a8012a4a8 100644
--- a/src/misc2.c
+++ b/src/misc2.c
@@ -1375,7 +1375,7 @@ find_special_key(
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 @@ find_special_key(
&n, 0, TRUE);
if (l == 0)
{
- emsg(_(e_invarg));
+ emsg(_(e_invalid_argument));
return 0;
}
key = (int)n;