2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 14:05:33 +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();
ConstElementPtr pref = getItem(xpath + "/prefix");
if (!pref) {
isc_throw(BadValue, "getPdPoolKea: no prefix defined at requested xpath("
<< xpath << "/prefix");
isc_throw(BadValue, "getPdPoolKea: no prefix defined at " << xpath);
}
const string& prefix = pref->stringValue();
size_t slash = prefix.find("/");