mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
dict_get_value(): name the missing key (#6952)
This commit is contained in:

committed by
Justin M. Keyes

parent
82907ab5fe
commit
e333957a1a
@@ -95,7 +95,7 @@ Object dict_get_value(dict_T *dict, String key, Error *err)
|
|||||||
dictitem_T *const di = tv_dict_find(dict, key.data, (ptrdiff_t)key.size);
|
dictitem_T *const di = tv_dict_find(dict, key.data, (ptrdiff_t)key.size);
|
||||||
|
|
||||||
if (di == NULL) {
|
if (di == NULL) {
|
||||||
api_set_error(err, kErrorTypeValidation, "Key not found");
|
api_set_error(err, kErrorTypeValidation, "Key '%s' not found", key.data);
|
||||||
return (Object)OBJECT_INIT;
|
return (Object)OBJECT_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user