Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
2a1b3e11
Commit
2a1b3e11
authored
Jun 19, 2015
by
Francis Dupont
Browse files
[3697] Applied and reindented the proposed patch
parent
6eb9d7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/kea_controller.cc
View file @
2a1b3e11
...
...
@@ -69,6 +69,17 @@ void configure(const std::string& file_name) {
isc_throw
(
isc
::
BadValue
,
"no configuration found"
);
}
// Let's do sanity check before we call json->get() which
// works only for map.
if
(
json
->
getType
()
!=
isc
::
data
::
Element
::
map
)
{
isc_throw
(
isc
::
BadValue
,
"Configuration file is expected to be "
"a map, i.e., start with { and end with } and contain "
"at least an entry called 'Dhcp6' that itself is a map. "
<<
file_name
<<
" is a valid JSON, but its top element is not a map."
" Did you forget to add { } around your configuration?"
);
}
// Let's configure logging before applying the configuration,
// so we can log things during configuration process.
// If there's no logging element, we'll just pass NULL pointer,
...
...
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