summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/Ice/Exception.cpp2
-rw-r--r--cpp/src/Ice/Network.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/Ice/Exception.cpp b/cpp/src/Ice/Exception.cpp
index d31c97e6718..d471a7b6b55 100644
--- a/cpp/src/Ice/Exception.cpp
+++ b/cpp/src/Ice/Exception.cpp
@@ -239,7 +239,7 @@ void
Ice::DNSException::ice_print(ostream& out) const
{
Exception::ice_print(out);
- out << ":\nDNS error: " << errorToStringDNS(error);
+ out << ":\nDNS error: " << errorToStringDNS(error) << "\nhost: " << host;
}
void
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 3d9c77a3271..d2f35294cc7 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -606,6 +606,7 @@ IceInternal::getAddress(const string& host, int port, struct sockaddr_in& addr)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}
@@ -644,6 +645,7 @@ IceInternal::getLocalHost(bool numeric)
{
DNSException ex(__FILE__, __LINE__);
ex.error = getDNSErrno();
+ ex.host = host;
throw ex;
}