Browse Source

[5098] Exception now logs location.

Tomek Mrugalski 8 years ago
parent
commit
741963208d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dhcpsrv/parsers/client_class_def_parser.cc

+ 2 - 1
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