mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 21:40:08 +01:00
settings: set @error on failure of nm_settings_plugin_add_connection()
This commit is contained in:
parent
99b37d768f
commit
c30627f106
1 changed files with 2 additions and 0 deletions
|
|
@ -175,5 +175,7 @@ nm_settings_plugin_add_connection (NMSettingsPlugin *config,
|
|||
if (NM_SETTINGS_PLUGIN_GET_INTERFACE (config)->add_connection)
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue