summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2019-07-08 19:47:12 +0200
committerFrancis Dupont <fdupont@isc.org>2019-07-08 20:00:51 +0200
commit237afd3c512ed4d05ae76de76cce21dca643a889 (patch)
tree4773438b6c6a55e399c0d77fc2f3e7ad52b8f185 /src/lib
parent[630-cb-can-be-used-to-remove-mandatory-global-parameters] (checkpoint) Added... (diff)
downloadkea-237afd3c512ed4d05ae76de76cce21dca643a889.tar.xz
kea-237afd3c512ed4d05ae76de76cce21dca643a889.zip
[630-cb-can-be-used-to-remove-mandatory-global-parameters] Addressed comments
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dhcpsrv/srv_config.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/dhcpsrv/srv_config.cc b/src/lib/dhcpsrv/srv_config.cc
index 02b5fbbfa0..4fed65e098 100644
--- a/src/lib/dhcpsrv/srv_config.cc
+++ b/src/lib/dhcpsrv/srv_config.cc
@@ -326,7 +326,8 @@ SrvConfig::applyDefaultsConfiguredGlobals(const SimpleDefaults& defaults) {
bool_value = false;
} else {
isc_throw(BadValue,
- "Internal error. Boolean value specified as "
+ "Internal error. Boolean value for "
+ << def_value.name_ << " specified as "
<< def_value.value_ << ", expected true or false");
}
x.reset(new BoolElement(bool_value, pos));
@@ -340,7 +341,8 @@ SrvConfig::applyDefaultsConfiguredGlobals(const SimpleDefaults& defaults) {
default:
// No default values for null, list or map
isc_throw(BadValue,
- "Internal error. Incorrect default value type.");
+ "Internal error. Incorrect default value type for "
+ << def_value.name_);
}
addConfiguredGlobal(def_value.name_, x);
}