Browse Source

[2834] made exception what() a bit more accurate

JINMEI Tatuya 12 years ago
parent
commit
44890bb7db
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/datasrc/client_list.cc

+ 3 - 2
src/lib/datasrc/client_list.cc

@@ -148,8 +148,9 @@ ConfigurableClientList::configure(const ConstElementPtr& config,
                 try {
                 try {
                     load_action = cache_conf->getLoadAction(rrclass_, zname);
                     load_action = cache_conf->getLoadAction(rrclass_, zname);
                 } catch (const DataSourceError&) {
                 } catch (const DataSourceError&) {
-                    isc_throw(ConfigurationError, "Unable to cache "
-                              "non-existent zone " << zname);
+                    isc_throw(ConfigurationError, "Data source error for "
+                              "loading a zone (possibly non-existent) "
+                              << zname << "/" << rrclass_);
                 }
                 }
                 assert(load_action); // in this loop this should be always true
                 assert(load_action); // in this loop this should be always true
                 boost::scoped_ptr<memory::ZoneWriter> writer;
                 boost::scoped_ptr<memory::ZoneWriter> writer;