From: Tomek Mrugalski Date: Thu, 19 Jan 2017 12:07:53 +0000 (+0100) Subject: [5098] Exception now logs location. X-Git-Tag: trac102_base~2^2~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=741963208d862fd8cced5510716c903a7db1f57b;p=thirdparty%2Fkea.git [5098] Exception now logs location. --- diff --git a/src/lib/dhcpsrv/parsers/client_class_def_parser.cc b/src/lib/dhcpsrv/parsers/client_class_def_parser.cc index 2194cffc31..e4f5704595 100644 --- a/src/lib/dhcpsrv/parsers/client_class_def_parser.cc +++ b/src/lib/dhcpsrv/parsers/client_class_def_parser.cc @@ -105,7 +105,8 @@ ClientClassDefParser::parse(ClientClassDictionaryPtr& class_dictionary, // name is now mandatory if (name.empty()) { isc_throw(DhcpConfigError, - "not empty parameter 'name' is required"); + "not empty parameter 'name' is required" << "(" + << class_def_cfg->getPosition() << ")" ); } // Let's parse the next-server field