From b8c0bac0919ccf2f95faea07c11bd1981475e698 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Fri, 25 Jan 2019 23:50:44 +0100 Subject: [PATCH] [406-update-cb_cmds-with-get-commands] Updated CB exception messages --- src/lib/config_backend/base_config_backend_pool.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()); } -- 2.47.3