From ff9b73ec2f5eaa47c1506d06b2fb5257bfd318ea Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Tue, 27 Oct 2015 03:13:21 -0700 Subject: [PATCH] Non-existent object getters shouldn't throw exceptions --- object_accessor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/object_accessor.hpp b/object_accessor.hpp index 5636a2cb..1afdf772 100644 --- a/object_accessor.hpp +++ b/object_accessor.hpp @@ -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(ctx, *prop); };