Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sebastian Schrader
Kea
Commits
b848a4b5
Commit
b848a4b5
authored
Oct 17, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[65-libyang-pd-pool] Uniformized throw message
parent
04d1db88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
src/lib/yang/translator_pd_pool.cc
src/lib/yang/translator_pd_pool.cc
+1
-2
No files found.
src/lib/yang/translator_pd_pool.cc
View file @
b848a4b5
...
...
@@ -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
(
"/"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment