[PATCH 6 of 6 STABLE] httppeer: unify hint message for PeerTransportError

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sun Apr 30 16:54:08 EDT 2017


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1493585556 -32400
#      Mon May 01 05:52:36 2017 +0900
# Branch stable
# Node ID 7077f5f603b62996c3b57f82d535f1facefb245d
# Parent  b46c9c1840f982673f2eb9108aeec877984b1737
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.

diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -80,7 +80,7 @@ def _wraphttpresponse(resp):
             except httplib.HTTPException as e:
                 raise error.PeerTransportError(
                     _('HTTP request error (%s)') % e,
-                    hint=_('this may be an intermittent failure; '
+                    hint=_('this may be an intermittent network failure; '
                            'if the error persists, consider contacting the '
                            'network or server operator'))
 


More information about the Mercurial-devel mailing list