Mercurial > hg
changeset 9095:89fd11257d75
convert/cvs: improve error message on unexpected server output.
author | Greg Ward <greg-hg@gerg.ca> |
---|---|
date | Wed, 08 Jul 2009 22:08:45 -0400 |
parents | 89ae64a4e2ec |
children | 47bc92755b95 |
files | hgext/convert/cvs.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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()