[balsa/gtk3] Report error saving password



commit 95f16619b367adb936e18ba7ddb60c1f125550fb
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sat Mar 2 07:12:24 2013 -0500

    Report error saving password
    
        * libbalsa/server.c (libbalsa_server_save_config): report
        error saving password.

 ChangeLog         |    5 +++++
 libbalsa/server.c |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2b8843e..ab9b66b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-03-02  Peter Bloomfield
 
+       * libbalsa/server.c (libbalsa_server_save_config): report
+       error saving password.
+
+2013-03-02  Peter Bloomfield
+
        Re-enable mailbox check in a subthread
 
        * libbalsa/mailbox.c (libbalsa_mailbox_progress_notify),
diff --git a/libbalsa/server.c b/libbalsa/server.c
index 86dff2b..4e82e7d 100644
--- a/libbalsa/server.c
+++ b/libbalsa/server.c
@@ -448,6 +448,11 @@ libbalsa_server_save_config(LibBalsaServer * server)
                                    "server",   server->host,
                                    "user",     server->user,
                                    NULL);
+        if (err) {
+            printf(_("Error storing password for %s %s: %s\n"),
+                   server->user, server->host, err->message);
+            g_error_free(err);
+        }
 #elif defined (HAVE_GNOME_KEYRING)
        gnome_keyring_store_password_sync(LIBBALSA_SERVER_KEYRING_SCHEMA,
                                     NULL,


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