# HG changeset patch # User Vadim Gelfer # Date 1148313624 25200 # Node ID f77edcffb83729c9644e6d15e25bf340fbc2e7d9 # Parent f0680b2d1d64ac6b39e9eced486bf804915bcd6b http: print better error if exception happens. diff -r f0680b2d1d64 -r f77edcffb837 mercurial/httprepo.py --- a/mercurial/httprepo.py Mon May 22 08:47:53 2006 -0700 +++ b/mercurial/httprepo.py Mon May 22 09:00:24 2006 -0700 @@ -106,7 +106,9 @@ try: resp = urllib2.urlopen(cu) except httplib.HTTPException, inst: - raise IOError(None, _('http error while sending %s command') % cmd) + self.ui.debug(_('http error while sending %s command\n') % cmd) + self.ui.print_exc() + raise IOError(None, inst) proto = resp.headers['content-type'] # accept old "text/plain" and "application/hg-changegroup" for now