diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-04 19:57:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-04 19:57:55 +0000 |
commit | d88be5be80f47826397d12ffc90150a443821f2b (patch) | |
tree | ab0149d75313cb223ece41b426fde97776bb5d39 /src/ex_eval.c | |
parent | 6cac77016b1636e04073e8348b7cee02259ef928 (diff) |
patch 8.2.4003: error messages are spread outv8.2.4003
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/ex_eval.c')
-rw-r--r-- | src/ex_eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ex_eval.c b/src/ex_eval.c index 231e0f360d..d9d6b2db54 100644 --- a/src/ex_eval.c +++ b/src/ex_eval.c @@ -521,7 +521,7 @@ throw_exception(void *value, except_type_T type, char_u *cmdname) && (((char_u *)value)[3] == NUL || ((char_u *)value)[3] == ':' || ((char_u *)value)[3] == '(')) { - emsg(_("E608: Cannot :throw exceptions with 'Vim' prefix")); + emsg(_(e_cannot_throw_exceptions_with_vim_prefix)); goto fail; } } @@ -1624,7 +1624,7 @@ ex_try(exarg_T *eap) return; if (cstack->cs_idx == CSTACK_LEN - 1) - eap->errmsg = _("E601: :try nesting too deep"); + eap->errmsg = _(e_try_nesting_too_deep); else { enter_block(cstack); @@ -1727,7 +1727,7 @@ ex_catch(exarg_T *eap) { // Give up for a ":catch" after ":finally" and ignore it. // Just parse. - eap->errmsg = _("E604: :catch after :finally"); + eap->errmsg = _(e_catch_after_finally); give_up = TRUE; } else |