diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-31 22:49:24 +0000 |
commit | 436b5adc9770a2568209dd5ab1f98bd1afc91898 (patch) | |
tree | 623dc85ee9a396b16f939f44d38138f882edc229 /src/match.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (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/match.c')
-rw-r--r-- | src/match.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/match.c b/src/match.c index 3b5c18e424..f1c7442a54 100644 --- a/src/match.c +++ b/src/match.c @@ -69,7 +69,7 @@ match_add( } if (pat != NULL && (regprog = vim_regcomp(pat, RE_MAGIC)) == NULL) { - semsg(_(e_invarg2), pat); + semsg(_(e_invalid_argument_str), pat); return -1; } @@ -1087,7 +1087,7 @@ f_setmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED) if (li->li_tv.v_type != VAR_DICT || (d = li->li_tv.vval.v_dict) == NULL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } if (!(dict_find(d, (char_u *)"group", -1) != NULL @@ -1096,7 +1096,7 @@ f_setmatches(typval_T *argvars UNUSED, typval_T *rettv UNUSED) && dict_find(d, (char_u *)"priority", -1) != NULL && dict_find(d, (char_u *)"id", -1) != NULL)) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } li = li->li_next; @@ -1394,7 +1394,7 @@ ex_match(exarg_T *eap) { // There must be two arguments. vim_free(g); - semsg(_(e_invarg2), eap->arg); + semsg(_(e_invalid_argument_str), eap->arg); return; } end = skip_regexp(p + 1, *p, TRUE); @@ -1409,7 +1409,7 @@ ex_match(exarg_T *eap) if (*end != *p) { vim_free(g); - semsg(_(e_invarg2), p); + semsg(_(e_invalid_argument_str), p); return; } |