]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#478,!249] Added extra log error message.
authorTomek Mrugalski <tomasz@isc.org>
Wed, 6 Mar 2019 18:46:59 +0000 (19:46 +0100)
committerFrancis Dupont <fdupont@isc.org>
Wed, 6 Mar 2019 20:25:23 +0000 (15:25 -0500)
src/lib/dhcpsrv/host_data_source_factory.cc

index e80b3348c910d52e9a1ae869fbb57a2ec47c85be..f681c9f530e0ebf86c8a62a82842b5ca76a89d65 100644 (file)
@@ -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.