* handle 'other' TNY_TRANSPORT_ACCOUNT_ERRORs as well, instead
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Wed, 2 Jan 2008 10:53:34 +0000 (10:53 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Wed, 2 Jan 2008 10:53:34 +0000 (10:53 +0000)
  of asserting it cannot happen.
  in:
...

pmo-trunk-r3970

src/modest-ui-actions.c

index 43ebb6a..ad8f48d 100644 (file)
@@ -5169,7 +5169,10 @@ modest_ui_actions_on_send_queue_error_happened (TnySendQueue *self,
                message = g_strdup (_("emev_ib_ui_smtp_send_error"));
                break;
        default:
                message = g_strdup (_("emev_ib_ui_smtp_send_error"));
                break;
        default:
-               g_return_if_reached ();
+               g_warning ("%s: unexpected TNY_TRANSPORT_ACCOUNT_ERROR %d",
+                          __FUNCTION__, err->code);
+               message = g_strdup (_("emev_ib_ui_smtp_send_error"));
+               break;  
        }
        
        /* TODO if the username or the password where not defined we
        }
        
        /* TODO if the username or the password where not defined we