From f2fce065ab4d248268e60ca549480e6967cfbe1a Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 13 Oct 2010 08:57:53 -0700 Subject: Show hostname when getaddrinfo fails. --- pym/_emerge/actions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym/_emerge/actions.py') diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index d395864b9..86e6a529f 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2102,7 +2102,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): addrinfos = socket.getaddrinfo(hostname, None, family, socket.SOCK_STREAM) except socket.error as e: - writemsg("!!! getaddrinfo failed: %s\n" % (e,), noiselevel=-1) + writemsg("!!! getaddrinfo failed for '%s': %s\n" % (hostname, e), noiselevel=-1) # With some configurations we need to use the plain hostname # rather than try to resolve the ip addresses (bug #340817). uris.append(syncuri) -- cgit v1.2.3-1-g7c22