From: Tomek Mrugalski Date: Wed, 6 Mar 2019 18:46:59 +0000 (+0100) Subject: [#478,!249] Added extra log error message. X-Git-Tag: 465-add-subnet4-update-and-subnet6-update-commands-to-subnet-cmds-hook_base2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a723bf02bd4284f953d51ebfbb3b682bc2362c2;p=thirdparty%2Fkea.git [#478,!249] Added extra log error message. --- diff --git a/src/lib/dhcpsrv/host_data_source_factory.cc b/src/lib/dhcpsrv/host_data_source_factory.cc index e80b3348c9..f681c9f530 100644 --- a/src/lib/dhcpsrv/host_data_source_factory.cc +++ b/src/lib/dhcpsrv/host_data_source_factory.cc @@ -61,8 +61,13 @@ HostDataSourceFactory::add(HostDataSourceList& sources, // No match? if (index == map_.end()) { + if ( (db_type == "mysql") || (db_type == "pgsql") || (db_type == "cql")) { + isc_throw(InvalidType, "The type of host backend: '" << db_type + << "' is not compiled in. Did you forget to use --with-mysql," + << " --with-pgsql or --with-cql during compilation?"); + } isc_throw(InvalidType, "The type of host backend: '" << - db_type << "' is not currently supported"); + db_type << "' is not supported"); } // Call the factory and push the pointer on sources.