Re: Improve the accuracy of local provider error reporting



On Fri, 2008-04-25 at 13:57 +0200, Sergio Villar Senin wrote:
> Sergio Villar Senin escribiu:
> > Hi,
> > 
> > this patch sets the error CAMEL_EXCEPTION_FOLDER_CREATE instead of
> > CAMEL_EXCEPTION_STORE_NO_FOLDER when the get_folder method is called
> > with CAMEL_STORE_FOLDER_CREATE flag by create_folder.
> > 
> > This way we'll get a TNY_SERVICE_ERROR_FOLDER_CREATE instead of a
> > TNY_SERVICE_ERROR_FOLDER_IS_UNKNOWN
> 
> Maybe we could do the same for camel-maildir-store.c:148, where the
> mkdir is failing.


That's actually an IO error, not a FOLDER_CREATE error, because we can
be more specific. There's a CamelException error code for IO errors by
the way.


-- 
Philip Van Hoof, freelance software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://pvanhoof.be/blog
http://codeminded.be






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]