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

login
register
mail settings
Submitter Katsunori FUJIWARA
Date April 30, 2017, 8:54 p.m.
Message ID <7077f5f603b62996c3b5.1493585648@speaknoevil>
Download mbox | patch
Permalink /patch/20319/
State Accepted
Headers show

Comments

Katsunori FUJIWARA - April 30, 2017, 8:54 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@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.

Patch

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'))