comparison mercurial/httppeer.py @ 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 b59a292d0a53
comparison
equal deleted inserted replaced
32022:e5d7f99a3063 32023:a29580905771
70 'expected %d bytes got %d)') % (e.expected, 70 'expected %d bytes got %d)') % (e.expected,
71 len(e.partial)) 71 len(e.partial))
72 else: 72 else:
73 msg = _('HTTP request error (incomplete response)') 73 msg = _('HTTP request error (incomplete response)')
74 74
75 raise error.RichIOError( 75 raise error.PeerTransportError(
76 msg, 76 msg,
77 hint=_('this may be an intermittent network failure; ' 77 hint=_('this may be an intermittent network failure; '
78 'if the error persists, consider contacting the ' 78 'if the error persists, consider contacting the '
79 'network or server operator')) 79 'network or server operator'))
80 except httplib.HTTPException as e: 80 except httplib.HTTPException as e:
81 raise error.RichIOError( 81 raise error.PeerTransportError(
82 _('HTTP request error (%s)') % e, 82 _('HTTP request error (%s)') % e,
83 hint=_('this may be an intermittent failure; ' 83 hint=_('this may be an intermittent failure; '
84 'if the error persists, consider contacting the ' 84 'if the error persists, consider contacting the '
85 'network or server operator')) 85 'network or server operator'))
86 86