]> granicus.if.org Git - pdns/commitdiff
Improved error message for socketfile not found
authorRuben d'Arco <cyclops@prof-x.net>
Fri, 16 Aug 2013 18:41:58 +0000 (20:41 +0200)
committerRuben d'Arco <cyclops@prof-x.net>
Fri, 16 Aug 2013 18:41:58 +0000 (20:41 +0200)
pdns/rec_channel.cc

index 38d70daf22945fc0f9704c0fa470c7228ede57ad..c549e9db0f632d71bbd162aa5f066cff262beb54 100644 (file)
@@ -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)));
   }
 }