From: Ruben d'Arco Date: Fri, 16 Aug 2013 18:41:58 +0000 (+0200) Subject: Improved error message for socketfile not found X-Git-Tag: rec-3.6.0-rc1~502^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F951%2Fhead;p=thirdparty%2Fpdns.git Improved error message for socketfile not found --- diff --git a/pdns/rec_channel.cc b/pdns/rec_channel.cc index 38d70daf22..c549e9db0f 100644 --- a/pdns/rec_channel.cc +++ b/pdns/rec_channel.cc @@ -104,7 +104,7 @@ void RecursorControlChannel::connect(const string& path, const string& fname) strcpy(remote.sun_path,(path+"/"+fname).c_str()); if(::connect(d_fd, (sockaddr*)&remote, sizeof(remote)) < 0) { unlink(d_local.sun_path); - throw PDNSException("Unable to connect to remote '"+path+fname+"': "+string(strerror(errno))); + throw PDNSException("Unable to connect to remote '"+string(remote.sun_path)+"': "+string(strerror(errno))); } }