From: Francis Dupont Date: Fri, 25 Jan 2019 22:50:44 +0000 (+0100) Subject: [406-update-cb_cmds-with-get-commands] Updated CB exception messages X-Git-Tag: 426-cassandra-unit-tests-ends-with-success-even-though-they-fail_base~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8c0bac0919ccf2f95faea07c11bd1981475e698;p=thirdparty%2Fkea.git [406-update-cb_cmds-with-get-commands] Updated CB exception messages --- diff --git a/src/lib/config_backend/base_config_backend_pool.h b/src/lib/config_backend/base_config_backend_pool.h index d88940e2af..9b255133c2 100644 --- a/src/lib/config_backend/base_config_backend_pool.h +++ b/src/lib/config_backend/base_config_backend_pool.h @@ -1,4 +1,4 @@ -// Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC") +// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC") // // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this @@ -233,7 +233,7 @@ protected: } } else { - isc_throw(db::NoSuchDatabase, "no database found for selector: " + isc_throw(db::NoSuchDatabase, "no such database found for selector: " << backend_selector.toText()); } } @@ -303,7 +303,7 @@ protected: } } else { - isc_throw(db::NoSuchDatabase, "no database found for selector: " + isc_throw(db::NoSuchDatabase, "no such database found for selector: " << backend_selector.toText()); } } @@ -364,11 +364,11 @@ protected: Args... input) { auto backends = selectBackends(backend_selector); if (backends.empty()) { - isc_throw(db::NoSuchDatabase, "no database found for selector: " + isc_throw(db::NoSuchDatabase, "no such database found for selector: " << backend_selector.toText()); } else if (backends.size() > 1) { - isc_throw(db::AmbiguousDatabase, "more than 1 database found for " + isc_throw(db::AmbiguousDatabase, "more than one database found for " "selector: " << backend_selector.toText()); }