dict_get_value(): name the missing key (#6952)

This commit is contained in:
Matthieu Coudron 2017-07-03 23:03:30 +02:00 committed by Justin M. Keyes
parent 82907ab5fe
commit e333957a1a

View File

@ -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;
}