diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-10-13 08:57:53 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-13 08:59:40 -0700 |
commit | ac630d170f7f5c685f1b019ea2cc2c53157ac087 (patch) | |
tree | e439657cb455c5142a3ee1df77aa2b23b372e864 | |
parent | Fix reference to possibly undefined ips variable. (diff) | |
download | portage-ac630d170f7f5c685f1b019ea2cc2c53157ac087.tar.gz portage-ac630d170f7f5c685f1b019ea2cc2c53157ac087.tar.bz2 portage-ac630d170f7f5c685f1b019ea2cc2c53157ac087.zip |
Show hostname when getaddrinfo fails.v2.1.9.17
-rw-r--r-- | pym/_emerge/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index fb6647cfd..83b7bb9f5 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2092,7 +2092,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) |