forked from aniani/vim
patch 8.2.3967: error messages are spread out
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
This commit is contained in:
@@ -4273,7 +4273,7 @@ hldict_get_string(dict_T *dict, char_u *key, int *error)
|
||||
|
||||
if (di->di_tv.v_type != VAR_STRING || di->di_tv.vval.v_string == NULL)
|
||||
{
|
||||
emsg(_(e_stringreq));
|
||||
emsg(_(e_string_required));
|
||||
*error = TRUE;
|
||||
return NULL;
|
||||
}
|
||||
@@ -4306,7 +4306,7 @@ hldict_attr_to_str(
|
||||
|
||||
if (di->di_tv.v_type != VAR_DICT || di->di_tv.vval.v_dict == NULL)
|
||||
{
|
||||
emsg(_(e_dictreq));
|
||||
emsg(_(e_dictionary_required));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -4548,7 +4548,7 @@ f_hlset(typval_T *argvars, typval_T *rettv)
|
||||
{
|
||||
if (li->li_tv.v_type != VAR_DICT)
|
||||
{
|
||||
emsg(_(e_dictreq));
|
||||
emsg(_(e_dictionary_required));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user