changeset 32023:a29580905771

error: rename RichIOError to PeerTransportError This is a more descriptive name. RichIOError was introduced just hours ago, so it doesn't need to be marked as BC.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 16 Apr 2017 11:12:37 -0700
parents e5d7f99a3063
children ad41739c6b2b
files mercurial/error.py mercurial/httppeer.py
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/error.py	Sun Apr 16 11:28:02 2017 -0700
+++ b/mercurial/error.py	Sun Apr 16 11:12:37 2017 -0700
@@ -253,5 +253,5 @@
 class CorruptedState(Exception):
     """error raised when a command is not able to read its state from file"""
 
-class RichIOError(Abort):
-    """An IOError that can also have a hint attached."""
+class PeerTransportError(Abort):
+    """Transport-level I/O error when communicating with a peer repo."""
--- 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 '