[network-manager-applet: 5/6] editor: Print nm_remote_connection_commit_changes errors




commit 606483e5e3ebd9c143f56744b60eb74936a19a47
Author: Andrew Zaborowski <andrew zaborowski intel com>
Date:   Sat Nov 7 18:01:12 2020 +0100

    editor: Print nm_remote_connection_commit_changes errors

 src/connection-editor/nm-connection-editor.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-editor.c b/src/connection-editor/nm-connection-editor.c
index 3c30528bf..25cc3830a 100644
--- a/src/connection-editor/nm-connection-editor.c
+++ b/src/connection-editor/nm-connection-editor.c
@@ -1182,8 +1182,9 @@ updated_connection_cb (GObject *connection,
        NMConnectionEditor *self = NM_CONNECTION_EDITOR (user_data);
        GError *error = NULL;
 
-       nm_remote_connection_commit_changes_finish (NM_REMOTE_CONNECTION (connection),
-                                                   result, &error);
+       if (!nm_remote_connection_commit_changes_finish (NM_REMOTE_CONNECTION (connection),
+                                                        result, &error))
+               g_message ("Error saving connection: %s", error->message);
 
        /* Clear secrets so they don't lay around in memory; they'll get requested
         * again anyway next time the connection is edited.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]