server/serverconfig.py
changeset 8708 78a99960286a
parent 8670 f02139297beb
child 8988 6cd912702239
child 8991 5238f62a430a
--- a/server/serverconfig.py	Wed Feb 20 16:13:21 2013 +0100
+++ b/server/serverconfig.py	Tue Dec 18 12:42:56 2012 +0100
@@ -82,7 +82,9 @@
     """serialize a repository source configuration as text"""
     stream = StringIO()
     optsbysect = list(sconfig.options_by_section())
-    assert len(optsbysect) == 1, 'all options for a source should be in the same group'
+    assert len(optsbysect) == 1, (
+        'all options for a source should be in the same group, got %s'
+        % [x[0] for x in optsbysect])
     lgconfig.ini_format(stream, optsbysect[0][1], encoding)
     return stream.getvalue()