]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4261] Fixed an error message in database access parser.
authorMarcin Siodelski <marcin@isc.org>
Tue, 13 Sep 2016 11:16:11 +0000 (13:16 +0200)
committerMarcin Siodelski <marcin@isc.org>
Tue, 13 Sep 2016 11:16:11 +0000 (13:16 +0200)
src/lib/dhcpsrv/parsers/dbaccess_parser.cc

index 2de5485175fe77404e370c2e7c28a291c909b5c4..6b7fa51eec46bc0f818a72e38c6fb614b9002f9c 100644 (file)
@@ -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() << ")");
     }