mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
dict_get_value(): name the missing key (#6952)
This commit is contained in:
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);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user