Mercurial > hg
changeset 32453:9d6031df42c8 stable
exchange: print full reason variable
This commit essentially reverts 69ac9aebbc55.
urllib2.URLError receives a "reason" argument. It isn't always a
tuple. Mozilla has experienced at least IndexError failures due
to the reason[1] access.
https://bugzilla.mozilla.org/show_bug.cgi?id=1364687
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 24 May 2017 15:25:24 -0700 |
parents | f928d53b687c |
children | 702af1ad3b18 |
files | mercurial/exchange.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchange.py Tue May 23 03:29:23 2017 +0900 +++ b/mercurial/exchange.py Wed May 24 15:25:24 2017 -0700 @@ -2018,7 +2018,7 @@ except urlerr.httperror as e: ui.warn(_('HTTP error fetching bundle: %s\n') % str(e)) except urlerr.urlerror as e: - ui.warn(_('error fetching bundle: %s\n') % e.reason[1]) + ui.warn(_('error fetching bundle: %s\n') % e.reason) return False finally: