Mercurial > public > mercurial-scm > hg
comparison mercurial/httppeer.py @ 32086:b59a292d0a53 stable
httppeer: unify hint message for PeerTransportError
Another raising PeerTransportError for "incomplete response" in
httppeer.py uses this (changed) hint message. This unification reduces
cost of translation.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 01 May 2017 05:52:36 +0900 |
parents | a29580905771 |
children | 0407a51b9d8c |
comparison
equal
deleted
inserted
replaced
32085:2a2744dffecf | 32086:b59a292d0a53 |
---|---|
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.PeerTransportError( | 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 network 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 |
87 resp.__class__ = readerproxy | 87 resp.__class__ = readerproxy |
88 | 88 |