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/time.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/time.c')
-rw-r--r-- | src/time.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/time.c b/src/time.c index bb4a202829..001f2d8121 100644 --- a/src/time.c +++ b/src/time.c @@ -190,7 +190,7 @@ f_reltime(typval_T *argvars UNUSED, typval_T *rettv UNUSED) if (list2proftime(&argvars[0], &res) == FAIL) { if (in_vim9script()) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } profile_end(&res); @@ -202,7 +202,7 @@ f_reltime(typval_T *argvars UNUSED, typval_T *rettv UNUSED) || list2proftime(&argvars[1], &res) == FAIL) { if (in_vim9script()) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); return; } profile_sub(&res, &start); @@ -240,7 +240,7 @@ f_reltimefloat(typval_T *argvars UNUSED, typval_T *rettv) if (list2proftime(&argvars[0], &tm) == OK) rettv->vval.v_float = profile_float(&tm); else if (in_vim9script()) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); # endif } # endif @@ -264,7 +264,7 @@ f_reltimestr(typval_T *argvars UNUSED, typval_T *rettv) if (list2proftime(&argvars[0], &tm) == OK) rettv->vval.v_string = vim_strsave((char_u *)profile_msg(&tm)); else if (in_vim9script()) - emsg(_(e_invarg)); + emsg(_(e_invalid_argument)); # endif } @@ -842,7 +842,7 @@ f_timer_start(typval_T *argvars, typval_T *rettv) if (argvars[2].v_type != VAR_DICT || (dict = argvars[2].vval.v_dict) == NULL) { - semsg(_(e_invarg2), tv_get_string(&argvars[2])); + semsg(_(e_invalid_argument_str), tv_get_string(&argvars[2])); return; } if (dict_find(dict, (char_u *)"repeat", -1) != NULL) |