[PATCH] Re: Raise Exception with sensible Error message

Nicolas Sebrecht nicolas.s-dev at laposte.net
Wed Mar 2 18:05:49 GMT 2011


On Wed, Mar 02, 2011 at 02:18:12PM +0100, Sebastian Spaeth wrote:
> 
> When e.g. specifying an invalid 'reference' value for an IMAP server to
> a root folder that does not exist, we would previously have crashed with
> a nonsensical and non-intuitive error message (trying to address an
> element of a NoneType).
> 
> This will also raise an Exception (which should be ok, given that this
> is really a misconfiguration on the user side), but at least it will
> explain to the user WHY it exited.

The commit title isn't precise enough. I think about

  "provide sensitive error message for any invalid IMAP server 'reference'"

and the Changelog should be updated.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list