Commit aec2fd00 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[4261] Fixed an error message in database access parser.

parent 93ab4a40
......@@ -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() << ")");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment