]> granicus.if.org Git - pdns/commitdiff
print the actual name of the failing file
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 9 Apr 2018 12:43:51 +0000 (14:43 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Mon, 9 Apr 2018 12:43:51 +0000 (14:43 +0200)
pdns/reczones.cc

index 364b710da27c12b1d2ea26cf024cd1403cbee335..15bad547ef8af50fba9a277286dc92ee1bf9c360 100644 (file)
@@ -430,7 +430,7 @@ std::shared_ptr<SyncRes::domainmap_t> parseAuthAndForwards()
     
     ifstream ifs(fname.c_str());
     if(!ifs) {
-      g_log<<Logger::Warning<<"Could not open /etc/hosts for reading"<<endl;
+      g_log<<Logger::Warning<<"Could not open "<<fname<<" for reading"<<endl;
     }
     else {
       string searchSuffix = ::arg()["export-etc-hosts-search-suffix"];