mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 15:24:18 +00:00
Non-existent object getters shouldn't throw exceptions
This commit is contained in:
parent
ed193d8f5c
commit
ff9b73ec2f
@ -117,7 +117,7 @@ namespace realm {
|
||||
{
|
||||
const Property *prop = object_schema.property_for_name(prop_name);
|
||||
if (!prop) {
|
||||
throw std::runtime_error("Setting invalid property '" + prop_name + "' on object '" + object_schema.name + "'.");
|
||||
throw std::runtime_error("Getting invalid property '" + prop_name + "' on object '" + object_schema.name + "'.");
|
||||
}
|
||||
return get_property_value_impl<ValueType>(ctx, *prop);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user