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:
@@ -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("/");
|
||||||
|
Reference in New Issue
Block a user