2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-03 23:45:27 +00:00

[65-libyang-pd-pool] Uniformized throw message

This commit is contained in:
Francis Dupont
2018-10-17 18:50:58 +02:00
parent 04d1db8868
commit b848a4b56e

View File

@@ -101,8 +101,7 @@ TranslatorPdPool::getPdPoolKea(const string& xpath) {
ElementPtr result = Element::createMap(); ElementPtr result = Element::createMap();
ConstElementPtr pref = getItem(xpath + "/prefix"); ConstElementPtr pref = getItem(xpath + "/prefix");
if (!pref) { if (!pref) {
isc_throw(BadValue, "getPdPoolKea: no prefix defined at requested xpath(" isc_throw(BadValue, "getPdPoolKea: no prefix defined at " << xpath);
<< xpath << "/prefix");
} }
const string& prefix = pref->stringValue(); const string& prefix = pref->stringValue();
size_t slash = prefix.find("/"); size_t slash = prefix.find("/");