2007-05-21 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Mon, 21 May 2007 14:46:40 +0000 (14:46 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Mon, 21 May 2007 14:46:40 +0000 (14:46 +0000)
* src/modest-account-mgr.c: (modest_account_mgr_add_account):
        * src/modest-mail-operation-queue.c:
        (modest_mail_operation_queue_remove):
        * src/modest-tny-account-store.c: When GErrors happen, give more clues
        about where they happened.

pmo-trunk-r1942

ChangeLog2
src/modest-account-mgr.c
src/modest-mail-operation-queue.c
src/modest-tny-account-store.c

index 825e318..02382d4 100644 (file)
@@ -1,5 +1,13 @@
 2007-05-21  Murray Cumming  <murrayc@murrayc.com>
 
+       * src/modest-account-mgr.c: (modest_account_mgr_add_account):
+       * src/modest-mail-operation-queue.c:
+       (modest_mail_operation_queue_remove):
+       * src/modest-tny-account-store.c: When GErrors happen, give more clues 
+       about where they happened.
+
+2007-05-21  Murray Cumming  <murrayc@murrayc.com>
+
        * src/modest-ui-actions.c:
        (modest_ui_actions_on_password_requested): Make sure that the remember 
        output parameter is always TRUE.
index fde5cc4..ea8afe4 100644 (file)
@@ -251,7 +251,7 @@ modest_account_mgr_add_account (ModestAccountMgr *self,
        if (!ok) {
                g_printerr ("modest: cannot set display name\n");
                if (err) {
-                       g_printerr ("modest: %s\n", err->message);
+                       g_printerr ("modest: Error adding account conf: %s\n", err->message);
                        g_error_free (err);
                }
                return FALSE;
@@ -265,7 +265,7 @@ modest_account_mgr_add_account (ModestAccountMgr *self,
                        g_printerr ("modest: failed to set store account '%s'\n",
                                store_account);
                        if (err) {
-                               g_printerr ("modest: %s\n", err->message);
+                               g_printerr ("modest: Error adding store account conf: %s\n", err->message);
                                g_error_free (err);
                        }
                        
@@ -282,7 +282,7 @@ modest_account_mgr_add_account (ModestAccountMgr *self,
                        g_printerr ("modest: failed to set transport account '%s'\n",
                                    transport_account);
                        if (err) {
-                               g_printerr ("modest: %s\n", err->message);
+                               g_printerr ("modest: Error adding transport account conf: %s\n", err->message);
                                g_error_free (err);
                        }       
                        return FALSE;
index db14af7..1893768 100644 (file)
@@ -198,7 +198,7 @@ modest_mail_operation_queue_remove (ModestMailOperationQueue *self,
                const GError *err;
                err = modest_mail_operation_get_error (mail_op);
                if (err)
-                       g_printerr (err->message);
+                       g_printerr ("Error in %s: %s", __FUNCTION__, err->message);
        }
 
        /* Notify observers */
index 9e1db5f..c577ded 100644 (file)
@@ -355,7 +355,8 @@ get_password (TnyAccount *account, const gchar *prompt, gboolean *cancel)
        return pwd;
 }
 
-
+/* tinymail calls this if the connection failed due to an incorrect password.
+ * And it seems to call this for any general connection failure. */
 static void
 forget_password (TnyAccount *account)
 {