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,