]> granicus.if.org Git - pdns/commitdiff
improve error message of pdnsutil if it can't find configuration
authorbert hubert <bert.hubert@powerdns.com>
Tue, 21 Nov 2017 15:05:30 +0000 (16:05 +0100)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 21 Nov 2017 15:05:30 +0000 (16:05 +0100)
pdns/pdnsutil.cc

index 05d5dee904bf389a35f9445eb10e348afb8aa2c5..2bef27c6b154d9abb741404a403c66c42ec4d825 100644 (file)
@@ -121,7 +121,7 @@ void loadMainConfig(const std::string& configdir)
 
   // Keep this line below all ::arg().set() statements
   if (! ::arg().laxFile(configname.c_str()))
-    cerr<<"Warning: unable to read configuration file '"<<configname<<"'."<<endl;
+    cerr<<"Warning: unable to read configuration file '"<<configname<<"': "<<strerror(errno)<<endl;
 
   seedRandom(::arg()["entropy-source"]);