summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-10-20 23:32:27 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-10-20 23:32:27 +0200
commitce26dee77d08876b2022ce480c8f7dd616f94df1 (patch)
tree3462c8dfdd968662037bf6ca837eee66e5e08e07 /methods
parentc1ce032acd71b8414ee8d9a1f20899f8e53388a0 (diff)
* methods/connect.cc:
- display also strerror of "wicked" getaddrinfo errors
Diffstat (limited to 'methods')
-rw-r--r--methods/connect.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index b5f48907e..74e670ebd 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -190,8 +190,8 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
return _error->Error(_("Temporary failure resolving '%s'"),
Host.c_str());
}
- return _error->Error(_("Something wicked happened resolving '%s:%s' (%i)"),
- Host.c_str(),ServStr,Res);
+ return _error->Error(_("Something wicked happened resolving '%s:%s' (%i - %s)"),
+ Host.c_str(),ServStr,Res,gai_strerror(Res));
}
break;
}