Set the exception if create_folder isn't implemented.
author1 <NotZed@Ximian.com>
Fri, 21 Sep 2001 20:01:24 +0000 (20:01 +0000)
committerMichael Zucci <zucchi@src.gnome.org>
Fri, 21 Sep 2001 20:01:24 +0000 (20:01 +0000)
2001-09-21    <NotZed@Ximian.com>

        * camel-store.c (create_folder): Set the exception if
        create_folder isn't implemented.

camel/ChangeLog
camel/camel-store.c

index 550e99f..6701394 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-21    <NotZed@Ximian.com>
+
+       * camel-store.c (create_folder): Set the exception if
+       create_folder isn't implemented.
+
 2001-09-21  Jeffrey Stedfast  <fejj@ximian.com>
 
        * providers/imap/camel-imap-store.c (create_folder): Go back to
index 62b1c48..4c70ae9 100644 (file)
@@ -268,6 +268,9 @@ create_folder (CamelStore *store, const char *parent_name,
 {
        g_warning ("CamelStore::create_folder not implemented for `%s'",
                   camel_type_to_name (CAMEL_OBJECT_GET_TYPE (store)));
+
+       camel_exception_setv(ex, CAMEL_EXCEPTION_STORE_INVALID,
+                            _("Cannot create folder: Invalid operation on this store"));
        return NULL;
 }