diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-01 15:58:22 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-01 15:58:22 +0000 |
commit | 74409f62790a93daf0965c71da01ff76aa0fa5a5 (patch) | |
tree | ece55c806dc6fe451d24af66008ae1444d81d73d /src/vim9expr.c | |
parent | 56200eed62e59ad831f6564dcafe346e6f97ac20 (diff) | |
download | vim-git-74409f62790a93daf0965c71da01ff76aa0fa5a5.tar.gz |
patch 8.2.3970: error messages are spread outv8.2.3970
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
Diffstat (limited to 'src/vim9expr.c')
-rw-r--r-- | src/vim9expr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/vim9expr.c b/src/vim9expr.c index d2e84a87d..ff106d189 100644 --- a/src/vim9expr.c +++ b/src/vim9expr.c @@ -517,7 +517,7 @@ compile_string(isn_T *isn, cctx_T *cctx) || GA_GROW_FAILS(&cctx->ctx_instr, 1)) { if (trailing_error) - semsg(_(e_trailing_arg), s); + semsg(_(e_trailing_characters_str), s); clear_instr_ga(&cctx->ctx_instr); cctx->ctx_instr = save_ga; ++cctx->ctx_type_stack.ga_len; @@ -1090,7 +1090,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) item = dict_find(d, key, -1); if (item != NULL) { - semsg(_(e_duplicate_key), key); + semsg(_(e_duplicate_key_in_dicitonary), key); goto failret; } item = dictitem_alloc(key); @@ -1108,7 +1108,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) if (*skipwhite(*arg) == ':') semsg(_(e_no_white_space_allowed_before_str_str), ":", *arg); else - semsg(_(e_missing_dict_colon), *arg); + semsg(_(e_missing_colon_in_dictionary), *arg); return FAIL; } whitep = *arg + 1; @@ -1140,7 +1140,7 @@ compile_dict(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) break; if (**arg != ',') { - semsg(_(e_missing_dict_comma), *arg); + semsg(_(e_missing_comma_in_dictionary), *arg); goto failret; } if (IS_WHITE_OR_NUL(*whitep)) @@ -1711,7 +1711,7 @@ compile_subscript( p = *arg; if (!eval_isnamec1(*p)) { - semsg(_(e_trailing_arg), pstart); + semsg(_(e_trailing_characters_str), pstart); return FAIL; } if (ASCII_ISALPHA(*p) && p[1] == ':') |