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/textprop.c | |
parent | f1474d801bbdb73406dd3d1f931f515f99e86dfa (diff) | |
download | vim-git-436b5adc9770a2568209dd5ab1f98bd1afc91898.tar.gz |
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/textprop.c')
-rw-r--r-- | src/textprop.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/textprop.c b/src/textprop.c index b3dac1f7e..3159920ee 100644 --- a/src/textprop.c +++ b/src/textprop.c @@ -362,7 +362,7 @@ f_prop_add_list(typval_T *argvars, typval_T *rettv UNUSED) if (error || start_lnum <= 0 || start_col <= 0 || end_lnum <= 0 || end_col <= 0) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } if (prop_add_one(buf, type_name, id, start_lnum, end_lnum, @@ -405,7 +405,7 @@ prop_add_common( end_lnum = dict_get_number(dict, (char_u *)"end_lnum"); if (end_lnum < start_lnum) { - semsg(_(e_invargval), "end_lnum"); + semsg(_(e_invalid_value_for_argument_str), "end_lnum"); return; } } @@ -418,7 +418,7 @@ prop_add_common( if (length < 0 || end_lnum > start_lnum) { - semsg(_(e_invargval), "length"); + semsg(_(e_invalid_value_for_argument_str), "length"); return; } end_col = start_col + length; @@ -428,7 +428,7 @@ prop_add_common( end_col = dict_get_number(dict, (char_u *)"end_col"); if (end_col <= 0) { - semsg(_(e_invargval), "end_col"); + semsg(_(e_invalid_value_for_argument_str), "end_col"); return; } } @@ -750,7 +750,7 @@ f_prop_find(typval_T *argvars, typval_T *rettv) dir = -1; else if (*dir_s != 'f') { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } } @@ -1179,7 +1179,7 @@ f_prop_remove(typval_T *argvars, typval_T *rettv) if (argvars[0].v_type != VAR_DICT || argvars[0].vval.v_dict == NULL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } @@ -1316,7 +1316,7 @@ prop_type_set(typval_T *argvars, int add) name = tv_get_string(&argvars[0]); if (*name == NUL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } @@ -1451,7 +1451,7 @@ f_prop_type_delete(typval_T *argvars, typval_T *rettv UNUSED) name = tv_get_string(&argvars[0]); if (*name == NUL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } @@ -1492,7 +1492,7 @@ f_prop_type_get(typval_T *argvars, typval_T *rettv) name = tv_get_string(&argvars[0]); if (*name == NUL) { - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } if (rettv_dict_alloc(rettv) == OK) |