Mercurial > public > mercurial-scm > hg
diff mercurial/exchange.py @ 26732:69ac9aebbc55
exchange: don't print error codes after clone bundle failure
We don't appear to print error codes elsewhere. The error codes are
inconsistent between at least Linux and OS X and are more trouble than
they are worth. Humans care about the error string more than the code
anyway.
A glob was also added to pave over differences in error strings between
Linux and OS X.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 15 Oct 2015 14:53:32 -0700 |
parents | 16e69e6b357b |
children | 9e272a96f764 |
line wrap: on
line diff
--- a/mercurial/exchange.py Wed Oct 14 14:53:15 2015 -0400 +++ b/mercurial/exchange.py Thu Oct 15 14:53:32 2015 -0700 @@ -1795,7 +1795,7 @@ except urllib2.HTTPError as e: ui.warn(_('HTTP error fetching bundle: %s\n') % str(e)) except urllib2.URLError as e: - ui.warn(_('error fetching bundle: %s\n') % e.reason) + ui.warn(_('error fetching bundle: %s\n') % e.reason[1]) return False finally: