From: Marcin Siodelski Date: Tue, 13 Sep 2016 11:16:11 +0000 (+0200) Subject: [4261] Fixed an error message in database access parser. X-Git-Tag: trac5006_base~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec2fd00406e060b5294860cd11e40a825966447;p=thirdparty%2Fkea.git [4261] Fixed an error message in database access parser. --- diff --git a/src/lib/dhcpsrv/parsers/dbaccess_parser.cc b/src/lib/dhcpsrv/parsers/dbaccess_parser.cc index 2de5485175..6b7fa51eec 100644 --- a/src/lib/dhcpsrv/parsers/dbaccess_parser.cc +++ b/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() << ")"); }