summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-remote-connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnm-glib/nm-remote-connection.c')
-rw-r--r--libnm-glib/nm-remote-connection.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-glib/nm-remote-connection.c b/libnm-glib/nm-remote-connection.c
index 9f5d611c34..1cd33ccde9 100644
--- a/libnm-glib/nm-remote-connection.c
+++ b/libnm-glib/nm-remote-connection.c
@@ -460,8 +460,7 @@ replace_settings (NMRemoteConnection *self, GHashTable *new_settings)
g_warning ("%s: error updating connection %s settings: (%d) %s",
__func__,
nm_connection_get_path (NM_CONNECTION (self)),
- error ? error->code : -1,
- (error && error->message) ? error->message : "(unknown)");
+ error->code, error->message);
g_clear_error (&error);
g_signal_emit (self, signals[REMOVED], 0);