summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2011-04-23 18:15:37 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2011-04-23 18:15:37 +0900
commit9824a32a803bd194208d460068ce5ba91d776686 (patch)
tree45102ab69957ea7c3ad6fa2f20123b1e9c1495c5 /json-glib/json-gobject.c
parent254e8e969968e7ed5f594238a980b20c6fabc46e (diff)
downloadjson-glib-9824a32a803bd194208d460068ce5ba91d776686.tar.gz
Warn from json_gobject_deserialize() if a listed property cannot be deserialized.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index 5742188..dfa4058 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -324,6 +324,9 @@ json_gobject_new (GType gtype,
g_type_name (G_VALUE_TYPE (&value)));
g_object_set_property (retval, pspec->name, &value);
}
+ else
+ g_warning ("Failed to deserialize \"%s\" property of type \"%s\" for an object of type \"%s\"",
+ pspec->name, g_type_name (G_VALUE_TYPE (&value)), g_type_name (gtype));
g_value_unset (&value);
}