From 3f3fa13e2d6dcdfe2a34565b28d76a64b53e59be Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 8 Feb 2016 12:13:19 +0100 Subject: [PATCH] pdnsutil: warn if we can't read the config file Closes #3305 --- pdns/pdnsutil.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 7a2e25ca7..f822de8c5 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 '"<