# HG changeset patch # User Sylvain Thénault # Date 1243503447 -7200 # Node ID 35394365b6c1b762380817a8cc7c006a1668c951 # Parent daf297034197a2ce6c805e6efd66e947242c61da nicer error message diff -r daf297034197 -r 35394365b6c1 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