]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[65-libyang-pd-pool] Uniformized throw message
authorFrancis Dupont <fdupont@isc.org>
Wed, 17 Oct 2018 16:50:58 +0000 (18:50 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 17 Oct 2018 16:50:58 +0000 (18:50 +0200)
src/lib/yang/translator_pd_pool.cc

index 1180c027b973d826600379dbd581bcfc73ff170a..02411ec73c2eda741553955a8b9f3f59e995af21 100644 (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("/");