From 8944540dd5e8c865b3f87b5e4b260e7d6f977167 Mon Sep 17 00:00:00 2001 From: Ruben d'Arco Date: Fri, 16 Aug 2013 20:41:58 +0200 Subject: [PATCH] Improved error message for socketfile not found --- pdns/rec_channel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))); } } -- 2.47.2