From: Pieter Lexis Date: Mon, 8 Feb 2016 11:13:19 +0000 (+0100) Subject: pdnsutil: warn if we can't read the config file X-Git-Tag: auth-4.0.0-alpha2~73^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f3fa13e2d6dcdfe2a34565b28d76a64b53e59be;p=thirdparty%2Fpdns.git pdnsutil: warn if we can't read the config file Closes #3305 --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 7a2e25ca79..f822de8c57 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -99,7 +99,9 @@ void loadMainConfig(const std::string& configdir) L.toConsole(Logger::Error); // so we print any errors BackendMakers().launch(::arg()["launch"]); // vrooooom! L.toConsole((Logger::Urgency)(::arg().asNum("loglevel"))); - ::arg().laxFile(configname.c_str()); + + if (! ::arg().laxFile(configname.c_str())) + cerr<<"Warning: unable to read configuration file '"<