Non-existent object getters shouldn't throw exceptions

This commit is contained in:
Scott Kyle 2015-10-27 03:13:21 -07:00 committed by Ari Lazier
parent ed193d8f5c
commit ff9b73ec2f
1 changed files with 1 additions and 1 deletions

View File

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