BIND 10 master, updated. baa709260c20abbe9c2b7610b867bc7a95d07425 [master] report actual error in masterload
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jul 26 15:37:02 UTC 2012
The branch, master has been updated
via baa709260c20abbe9c2b7610b867bc7a95d07425 (commit)
from 3777aedaa6b570da2a0ba6d444b9401e7e34aee2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit baa709260c20abbe9c2b7610b867bc7a95d07425
Author: Jelte Jansen <jelte at isc.org>
Date: Thu Jul 26 17:36:25 2012 +0200
[master] report actual error in masterload
if file cannot be opened.
acked on jabber by jinmei
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/masterload.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/masterload.cc b/src/lib/dns/masterload.cc
index 0b195f6..3deae19 100644
--- a/src/lib/dns/masterload.cc
+++ b/src/lib/dns/masterload.cc
@@ -17,6 +17,7 @@
#include <sstream>
#include <string>
#include <cctype>
+#include <cerrno>
#include <boost/scoped_ptr.hpp>
@@ -71,7 +72,8 @@ masterLoad(const char* const filename, const Name& origin,
ifstream ifs;
ifs.open(filename, ios_base::in);
if (ifs.fail()) {
- isc_throw(MasterLoadError, "Failed to open master file: " << filename);
+ isc_throw(MasterLoadError, "Failed to open master file: " <<
+ filename << ": " << strerror(errno));
}
masterLoad(ifs, origin, zone_class, callback);
ifs.close();
More information about the bind10-changes
mailing list