Fixed an exception to give a more meaningful description.
authorJeffrey Stedfast <fejj@ximian.com>
Mon, 17 Nov 2003 19:15:30 +0000 (19:15 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Mon, 17 Nov 2003 19:15:30 +0000 (19:15 +0000)
2003-11-17  Jeffrey Stedfast  <fejj@ximian.com>

* providers/local/camel-mbox-store.c (create_folder): Fixed an
exception to give a more meaningful description.

camel/ChangeLog
camel/providers/local/camel-mbox-store.c

index beddc20..511d12c 100644 (file)
@@ -1,3 +1,8 @@
+2003-11-17  Jeffrey Stedfast  <fejj@ximian.com>
+
+       * providers/local/camel-mbox-store.c (create_folder): Fixed an
+       exception to give a more meaningful description.
+
 2003-11-14  Jeffrey Stedfast  <fejj@ximian.com>
 
        * providers/local/camel-mbox-store.c (get_folder_info): Handle ""
index 8ef8168..a74f441 100644 (file)
@@ -336,7 +336,8 @@ create_folder (CamelStore *store, const char *parent_name, const char *folder_na
        if (stat (path, &st) == 0 || errno != ENOENT) {
                camel_exception_setv (ex, CAMEL_EXCEPTION_STORE_NO_FOLDER,
                                      _("Cannot create folder: %s: %s"),
-                                     path, g_strerror (errno));
+                                     path, errno ? g_strerror (errno) :
+                                     _("Folder already exists"));
                
                g_free (path);
                g_free (name);