diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-20 21:07:36 +0200 |
commit | e29a27f6f8eef8f00d3c2d4cd9811d81cf3026b3 (patch) | |
tree | eb8bd787e936db02a1617fb033aed2e224b3bbd3 /src/time.c | |
parent | 9fa5dabedc4ed5af85773413e91c2fdbe4cb9f0a (diff) |
patch 8.2.3190: error messages are spread outv8.2.3190
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
Diffstat (limited to 'src/time.c')
-rw-r--r-- | src/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/time.c b/src/time.c index eeefeb6a8e..f7f614e427 100644 --- a/src/time.c +++ b/src/time.c @@ -757,7 +757,7 @@ f_timer_info(typval_T *argvars, typval_T *rettv) if (argvars[0].v_type != VAR_UNKNOWN) { if (argvars[0].v_type != VAR_NUMBER) - emsg(_(e_number_exp)); + emsg(_(e_number_expected)); else { timer = find_timer((int)tv_get_number(&argvars[0])); @@ -783,7 +783,7 @@ f_timer_pause(typval_T *argvars, typval_T *rettv UNUSED) return; if (argvars[0].v_type != VAR_NUMBER) - emsg(_(e_number_exp)); + emsg(_(e_number_expected)); else { int paused = (int)tv_get_bool(&argvars[1]); @@ -844,7 +844,7 @@ f_timer_stop(typval_T *argvars, typval_T *rettv UNUSED) if (argvars[0].v_type != VAR_NUMBER) { - emsg(_(e_number_exp)); + emsg(_(e_number_expected)); return; } timer = find_timer((int)tv_get_number(&argvars[0])); |