]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5122] One more fix for printing out position
authorTomek Mrugalski <tomasz@isc.org>
Fri, 27 Jan 2017 20:48:26 +0000 (21:48 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Fri, 27 Jan 2017 20:48:26 +0000 (21:48 +0100)
src/lib/dhcpsrv/parsers/dhcp_parsers.cc

index 6e66ace13c38c917ec36ed4404a6fcef2add8c0e..2d22382d0e828f8609d1474024a8eb4c9a9f8921 100644 (file)
@@ -1048,9 +1048,11 @@ SubnetConfigParser::createSubnet(ConstElementPtr params) {
         subnet_->setHostReservationMode(hrModeFromText(hr_mode));
     } catch (const BadValue& ex) {
         ConstElementPtr mode = params->get("reservation-mode");
-        string pos("[missing]");
+        string pos;
         if (mode) {
             pos = mode->getPosition().str();
+        } else {
+            pos = params->getPosition().str();
         }
         isc_throw(DhcpConfigError, "Failed to process specified value "
                   " of reservation-mode parameter: " << ex.what()