nicer error message
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 28 May 2009 11:37:27 +0200
changeset 1980 35394365b6c1
parent 1979 daf297034197
child 1982 27e81d0c7d05
child 1990 59507a12a7f4
nicer error message
server/serverctl.py
--- a/server/serverctl.py	Thu May 28 11:35:56 2009 +0200
+++ b/server/serverctl.py	Thu May 28 11:37:27 2009 +0200
@@ -119,7 +119,7 @@
                     _sconfig.set_option(attr, val)
             sconfig = _sconfig
         optsbysect = list(sconfig.options_by_section())
-        assert len(optsbysect) == 1
+        assert len(optsbysect) == 1, 'all options for a source should be in the same group'
         ini_format_section(stream, uri, optsbysect[0][1])
         if hasattr(sconfig, 'adapter'):
             print >> stream