2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00

[#478,!249] Added extra log error message.

This commit is contained in:
Tomek Mrugalski
2019-03-06 19:46:59 +01:00
committed by Francis Dupont
parent 6f6b59fb62
commit 1a723bf02b

View 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.