diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-04 21:30:47 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-04 21:30:47 +0000 |
commit | a6f7929e62c19a6a2418a016b4c59b83eb1887ac (patch) | |
tree | dff539628404695bd64e68602c8f7f62d9dd12f7 /src/eval.c | |
parent | 548911ee145cdd166f20e46aa720d1631e66f64e (diff) | |
download | vim-git-a6f7929e62c19a6a2418a016b4c59b83eb1887ac.tar.gz |
patch 8.2.4005: error messages are spread outv8.2.4005
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eval.c b/src/eval.c index 0fb79112d..a99d149a0 100644 --- a/src/eval.c +++ b/src/eval.c @@ -958,7 +958,7 @@ get_lval( && lp->ll_tv->v_type != VAR_BLOB) { if (!quiet) - emsg(_("E689: Can only index a List, Dictionary or Blob")); + emsg(_(e_can_only_index_list_dictionary_or_blob)); return NULL; } @@ -972,7 +972,7 @@ get_lval( if (lp->ll_range) { if (!quiet) - emsg(_("E708: [:] must come last")); + emsg(_(e_slice_must_come_last)); return NULL; } @@ -1039,7 +1039,7 @@ get_lval( && rettv->vval.v_blob != NULL)) { if (!quiet) - emsg(_("E709: [:] requires a List or Blob value")); + emsg(_(e_slice_requires_list_or_blob_value)); clear_tv(&var1); return NULL; } @@ -5010,7 +5010,7 @@ echo_string_core( // flooding the user with errors. And stop iterating over lists // and dicts. did_echo_string_emsg = TRUE; - emsg(_("E724: variable nested too deep for displaying")); + emsg(_(e_variable_nested_too_deep_for_displaying)); } *tofree = NULL; return (char_u *)"{E724}"; @@ -6020,7 +6020,7 @@ item_copy( if (recurse >= DICT_MAXNEST) { - emsg(_("E698: variable nested too deep for making a copy")); + emsg(_(e_variable_nested_too_deep_for_making_copy)); return FAIL; } ++recurse; |