From 6003709b69650cda9ef1aeadb2eaeeb92b41b236 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Thu, 6 Dec 2007 15:25:30 +0000 Subject: [PATCH] More descriptive error git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3142 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- libnm-util/nm-setting.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libnm-util/nm-setting.c b/libnm-util/nm-setting.c index 58cb76d455..d081f408e2 100644 --- a/libnm-util/nm-setting.c +++ b/libnm-util/nm-setting.c @@ -32,8 +32,11 @@ nm_setting_to_hash (NMSetting *setting) g_return_val_if_fail (NM_IS_SETTING (setting), NULL); property_specs = g_object_class_list_properties (G_OBJECT_GET_CLASS (setting), &n_property_specs); - if (!property_specs) + if (!property_specs) { + g_warning ("%s: couldn't find property specs for object of type '%s'", + __func__, g_type_name (G_OBJECT_TYPE (setting))); return NULL; + } hash = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify) g_free,