]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2756] Include the datasource config that's causing an error
authorMukund Sivaraman <muks@isc.org>
Fri, 17 Jan 2014 06:25:50 +0000 (11:55 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 17 Jan 2014 06:25:57 +0000 (11:55 +0530)
src/lib/datasrc/cache_config.cc

index ec3cfeba827412477200658f8271b936f47f7c29..9a44900606195d24a02829090d3c832f1e72c1f9 100644 (file)
@@ -75,7 +75,8 @@ CacheConfig::CacheConfig(const std::string& datasrc_type,
 
         if (!enabled_) {
             isc_throw(CacheConfigError,
-                      "The cache must be enabled for the MasterFiles type");
+                      "The cache must be enabled for the MasterFiles type: "
+                      << datasrc_conf);
         }
 
         typedef std::map<std::string, ConstElementPtr> ZoneToFile;
@@ -100,7 +101,8 @@ CacheConfig::CacheConfig(const std::string& datasrc_type,
         if (!datasrc_conf.contains("cache-zones")) {
             isc_throw(NotImplemented, "Auto-detection of zones "
                       "to cache is not yet implemented, supply "
-                      "cache-zones parameter");
+                      "cache-zones parameter: "
+                      << datasrc_conf);
             // TODO: Auto-detect list of all zones in the
             // data source.
         }