convert/cvs: improve error message on unexpected server output.
authorGreg Ward <greg-hg@gerg.ca>
Wed, 08 Jul 2009 22:08:45 -0400
changeset 9095 89fd11257d75
parent 9094 89ae64a4e2ec
child 9096 47bc92755b95
convert/cvs: improve error message on unexpected server output.
hgext/convert/cvs.py
--- a/hgext/convert/cvs.py	Tue Jul 07 19:24:52 2009 +0200
+++ b/hgext/convert/cvs.py	Wed Jul 08 22:08:45 2009 -0400
@@ -282,7 +282,9 @@
         self.writep.flush()
         r = self.readp.readline()
         if not r.startswith("Valid-requests"):
-            raise util.Abort(_("server sucks"))
+            raise util.Abort(_("unexpected response from CVS server "
+                               "(expected \"Valid-requests\", but got %r)")
+                             % r)
         if "UseUnchanged" in r:
             self.writep.write("UseUnchanged\n")
             self.writep.flush()