mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 11:50:14 +01:00
core: return valid error to dbus-glib (rh #581794)
This commit is contained in:
parent
6d6f7d3d90
commit
eeca251a27
1 changed files with 3 additions and 1 deletions
|
|
@ -228,7 +228,9 @@ impl_exported_connection_get_secrets (NMExportedConnection *self,
|
|||
if (NM_EXPORTED_CONNECTION_GET_CLASS (self)->get_secrets)
|
||||
NM_EXPORTED_CONNECTION_GET_CLASS (self)->get_secrets (self, setting_name, hints, request_new, context);
|
||||
else {
|
||||
error = g_error_new (0, 0, "%s: %s:%d get_secrets() unimplemented", __func__, __FILE__, __LINE__);
|
||||
error = g_error_new (NM_SETTINGS_INTERFACE_ERROR,
|
||||
NM_SETTINGS_INTERFACE_ERROR_INTERNAL_ERROR,
|
||||
"%s: %s:%d get_secrets() unimplemented", __func__, __FILE__, __LINE__);
|
||||
dbus_g_method_return_error (context, error);
|
||||
g_error_free (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue