diff options
author | Andrei Pavel <andrei@isc.org> | 2021-11-22 11:59:15 +0100 |
---|---|---|
committer | Andrei Pavel <andrei@isc.org> | 2021-11-22 11:59:15 +0100 |
commit | c1603230390e365416dcf25c343593809690344a (patch) | |
tree | f59d788c5078a3e73297b94377de0024916cb725 /src/lib/http | |
parent | [#2195] bump lib versions for 2.1.1 (diff) | |
download | kea-c1603230390e365416dcf25c343593809690344a.tar.xz kea-c1603230390e365416dcf25c343593809690344a.zip |
[#2197] release changes
Diffstat (limited to 'src/lib/http')
-rw-r--r-- | src/lib/http/basic_auth_config.cc | 4 | ||||
-rw-r--r-- | src/lib/http/tests/basic_auth_config_unittests.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/http/basic_auth_config.cc b/src/lib/http/basic_auth_config.cc index 5530cf8c50..f2124c2e83 100644 --- a/src/lib/http/basic_auth_config.cc +++ b/src/lib/http/basic_auth_config.cc @@ -104,7 +104,7 @@ BasicHttpAuthConfig::parse(const ConstElementPtr& config) { << config->getPosition() << ")"); } if (type->getType() != Element::string) { - isc_throw(DhcpConfigError, "type is must be a string (" + isc_throw(DhcpConfigError, "type must be a string (" << type->getPosition() << ")"); } if (type->stringValue() != "basic") { @@ -117,7 +117,7 @@ BasicHttpAuthConfig::parse(const ConstElementPtr& config) { ConstElementPtr realm = config->get("realm"); if (realm) { if (realm->getType() != Element::string) { - isc_throw(DhcpConfigError, "realm is must be a string (" + isc_throw(DhcpConfigError, "realm must be a string (" << realm->getPosition() << ")"); } setRealm(realm->stringValue()); diff --git a/src/lib/http/tests/basic_auth_config_unittests.cc b/src/lib/http/tests/basic_auth_config_unittests.cc index 5a3f121d3b..6cf924c8c2 100644 --- a/src/lib/http/tests/basic_auth_config_unittests.cc +++ b/src/lib/http/tests/basic_auth_config_unittests.cc @@ -149,7 +149,7 @@ TEST(BasicHttpAuthConfigTest, parse) { // The type must be a string. cfg->set("type", Element::create(true)); EXPECT_THROW_MSG(config.parse(cfg), DhcpConfigError, - "type is must be a string (:0:0)"); + "type must be a string (:0:0)"); // The type must be basic. cfg->set("type", Element::create(string("foobar"))); @@ -162,7 +162,7 @@ TEST(BasicHttpAuthConfigTest, parse) { // The realm must be a string. cfg->set("realm", Element::createList()); EXPECT_THROW_MSG(config.parse(cfg), DhcpConfigError, - "realm is must be a string (:0:0)"); + "realm must be a string (:0:0)"); cfg->set("realm", Element::create(string("my-realm"))); EXPECT_NO_THROW(config.parse(cfg)); |