If store->engine->line is NULL, use _("Unknown error") as the error string
authorJeffrey Stedfast <fejj@ximian.com>
Tue, 8 Apr 2003 17:48:12 +0000 (17:48 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Tue, 8 Apr 2003 17:48:12 +0000 (17:48 +0000)
2003-04-08  Jeffrey Stedfast  <fejj@ximian.com>

* providers/pop3/camel-pop3-store.c (pop3_try_authenticate): If
store->engine->line is NULL, use _("Unknown error") as the error
string instead.

camel/ChangeLog
camel/providers/pop3/camel-pop3-store.c

index 7305a45..12aac0f 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-08  Jeffrey Stedfast  <fejj@ximian.com>
+
+       * providers/pop3/camel-pop3-store.c (pop3_try_authenticate): If
+       store->engine->line is NULL, use _("Unknown error") as the error
+       string instead.
+
 2003-04-08  Not Zed  <NotZed@Ximian.com>
 
        * camel-folder-summary.c (camel_folder_summary_load): use
index a8c693b..be4469f 100644 (file)
@@ -522,10 +522,12 @@ pop3_try_authenticate (CamelService *service, gboolean reprompt, const char *err
                                              errno ? g_strerror (errno) : _("Unknown error"));
                }
        } else if (pcp->state != CAMEL_POP3_COMMAND_OK)
-               camel_exception_setv(ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
-                                    _("Unable to connect to POP server %s.\nError sending password: %s"),
-                                    CAMEL_SERVICE(store)->url->host, store->engine->line);
-
+               camel_exception_setv (ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
+                                     _("Unable to connect to POP server %s.\n"
+                                       "Error sending password: %s"),
+                                     CAMEL_SERVICE (store)->url->host,
+                                     store->engine->line ? store->engine->line : _("Unknown error"));
+       
        camel_pop3_engine_command_free(store->engine, pcp);
        
        if (pcu)