]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5098] Exception now logs location.
authorTomek Mrugalski <tomasz@isc.org>
Thu, 19 Jan 2017 12:07:53 +0000 (13:07 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 19 Jan 2017 12:07:53 +0000 (13:07 +0100)
src/lib/dhcpsrv/parsers/client_class_def_parser.cc

index 2194cffc31311c3a132533697a3888cb5e792e08..e4f570459502d590ca5dd19b22447d296734e5a2 100644 (file)
@@ -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