mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-11 00:30:23 +01:00
More descriptive error
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3142 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
50e36ce698
commit
6003709b69
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue