Fix an exception error message.
authorBertrand Guiheneuf <bertrand@src.gnome.org>
Wed, 23 Feb 2000 17:21:46 +0000 (17:21 +0000)
committerBertrand Guiheneuf <bertrand@src.gnome.org>
Wed, 23 Feb 2000 17:21:46 +0000 (17:21 +0000)
camel/providers/mbox/camel-mbox-utils.c

index 64fb4cb..6a49bb8 100644 (file)
@@ -178,9 +178,11 @@ camel_mbox_copy_file_chunk (gint fd_src,
                } while (nb_read == -1 && errno == EINTR);
                
                if (nb_read == -1) {
-                       camel_exception_set (ex, 
-                                            CAMEL_EXCEPTION_FOLDER_INSUFFICIENT_PERMISSION,
-                                            "could read from the mbox file");
+                       camel_exception_setv (ex, 
+                                             CAMEL_EXCEPTION_FOLDER_INSUFFICIENT_PERMISSION,
+                                             "could not read from the mbox file\n"
+                                             "Full error is : %s\n",
+                                             strerror (errno));
                        return;
                }