settings: set @error on failure of nm_settings_plugin_add_connection()

This commit is contained in:
Beniamino Galvani
2016-03-03 14:24:18 +01:00
committed by Thomas Haller
parent 99b37d768f
commit c30627f106

View File

@@ -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;
} }