[mirrorbrain-commits] r7847 - /trunk/mirrordoctor/mb/conf.py

From: <poeml_at_mirrorbrain.org>
Date: Mon, 02 Nov 2009 08:49:40 -0000
Author: poeml
Date: Mon Nov  2 09:49:39 2009
New Revision: 7847

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=7847&view=rev
Log:
mb: fix misleading error message for config file with missing section

Modified:
    trunk/mirrordoctor/mb/conf.py

Modified: trunk/mirrordoctor/mb/conf.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mirrordoctor/mb/conf.py?rev=7847&r1=7846&r2=7847&view=diff
==============================================================================
--- trunk/mirrordoctor/mb/conf.py (original)
+++ trunk/mirrordoctor/mb/conf.py Mon Nov  2 09:49:39 2009
@@ -46,8 +46,8 @@
         #
         for i in self.instances:
             if not cp.has_section(i):
-                raise KeyError('The config does not have an instance [%s] defined' \
-                          % self.instance)
+                raise KeyError('The config does not have a section named [%s] '
+                               'for the instance %r' % (i, i))
             self.general[i] = dict(cp.items(i))
 
 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Mon Nov 02 2009 - 08:49:42 GMT

This archive was generated by hypermail 2.2.0 : Mon Nov 02 2009 - 09:45:12 GMT