Parcourir la source

[5098] Exception now logs location.

Tomek Mrugalski il y a 8 ans
Parent
commit
741963208d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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