From: Mukund Sivaraman Date: Fri, 17 Jan 2014 06:25:50 +0000 (+0530) Subject: [2756] Include the datasource config that's causing an error X-Git-Tag: bind10-1.2.0beta1-release~95^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bfadaf4d1e916aeddaf4cc17680fb0f71511b4e;p=thirdparty%2Fkea.git [2756] Include the datasource config that's causing an error --- diff --git a/src/lib/datasrc/cache_config.cc b/src/lib/datasrc/cache_config.cc index ec3cfeba82..9a44900606 100644 --- a/src/lib/datasrc/cache_config.cc +++ b/src/lib/datasrc/cache_config.cc @@ -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 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. }