diff src/dict.c @ 26877:06a137af96f8 v8.2.3967

patch 8.2.3967: error messages are spread out Commit: https://github.com/vim/vim/commit/460ae5dfca31fa627531c263184849976755cf6b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 1 14:19:49 2022 +0000 patch 8.2.3967: error messages are spread out Problem: Error messages are spread out. Solution: Move more errors to errors.h.
author Bram Moolenaar <Bram@vim.org>
date Sat, 01 Jan 2022 15:30:05 +0100
parents bce848ec8b1b
children 7f150a4936f2
line wrap: on
line diff
--- a/src/dict.c
+++ b/src/dict.c
@@ -1414,7 +1414,7 @@ dict_remove(typval_T *argvars, typval_T 
     di = dict_find(d, key, -1);
     if (di == NULL)
     {
-	semsg(_(e_dictkey), key);
+	semsg(_(e_key_not_present_in_dictionary), key);
 	return;
     }
 
@@ -1449,7 +1449,7 @@ dict_list(typval_T *argvars, typval_T *r
 
     if (argvars[0].v_type != VAR_DICT)
     {
-	emsg(_(e_dictreq));
+	emsg(_(e_dictionary_required));
 	return;
     }
 
@@ -1572,7 +1572,7 @@ f_has_key(typval_T *argvars, typval_T *r
 
     if (argvars[0].v_type != VAR_DICT)
     {
-	emsg(_(e_dictreq));
+	emsg(_(e_dictionary_required));
 	return;
     }
     if (argvars[0].vval.v_dict == NULL)