settings: set @error on failure of nm_settings_plugin_add_connection()
This commit is contained in:

committed by
Thomas Haller

parent
99b37d768f
commit
c30627f106
@@ -175,5 +175,7 @@ nm_settings_plugin_add_connection (NMSettingsPlugin *config,
|
|||||||
if (NM_SETTINGS_PLUGIN_GET_INTERFACE (config)->add_connection)
|
if (NM_SETTINGS_PLUGIN_GET_INTERFACE (config)->add_connection)
|
||||||
return NM_SETTINGS_PLUGIN_GET_INTERFACE (config)->add_connection (config, connection, save_to_disk, error);
|
return NM_SETTINGS_PLUGIN_GET_INTERFACE (config)->add_connection (config, connection, save_to_disk, error);
|
||||||
|
|
||||||
|
g_set_error_literal (error, NM_SETTINGS_ERROR, NM_SETTINGS_ERROR_NOT_SUPPORTED,
|
||||||
|
"Plugin does not support adding connections");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user