Parcourir la source

[master] Merge branch 'trac4261'

Marcin Siodelski il y a 8 ans
Parent
commit
028dd49f4f
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/dhcpsrv/parsers/dbaccess_parser.cc

+ 2 - 1
src/lib/dhcpsrv/parsers/dbaccess_parser.cc

@@ -83,7 +83,8 @@ DbAccessParser::build(isc::data::ConstElementPtr config_value) {
     // a. Check if the "type" keyword exists and thrown an exception if not.
     StringPairMap::const_iterator type_ptr = values_copy.find("type");
     if (type_ptr == values_copy.end()) {
-        isc_throw(TypeKeywordMissing, "lease database access parameters must "
+        isc_throw(TypeKeywordMissing, (type_ == LEASE_DB ? "lease" : "host")
+                  << " database access parameters must "
                   "include the keyword 'type' to determine type of database "
                   "to be accessed (" << config_value->getPosition() << ")");
     }