mercurial/httppeer.py
changeset 32023 a29580905771
parent 32022 e5d7f99a3063
child 32086 b59a292d0a53
--- a/mercurial/httppeer.py	Sun Apr 16 11:28:02 2017 -0700
+++ b/mercurial/httppeer.py	Sun Apr 16 11:12:37 2017 -0700
@@ -72,13 +72,13 @@
                 else:
                     msg = _('HTTP request error (incomplete response)')
 
-                raise error.RichIOError(
+                raise error.PeerTransportError(
                     msg,
                     hint=_('this may be an intermittent network failure; '
                            'if the error persists, consider contacting the '
                            'network or server operator'))
             except httplib.HTTPException as e:
-                raise error.RichIOError(
+                raise error.PeerTransportError(
                     _('HTTP request error (%s)') % e,
                     hint=_('this may be an intermittent failure; '
                            'if the error persists, consider contacting the '