Mercurial > hg-stable
changeset 9088:60e88d321171
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 | f48454a279b9 |
children | 6cf043b1aa14 |
files | hgext/convert/cvs.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/convert/cvs.py Wed Jul 08 23:17:10 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()