Skip to content

Commit

Permalink
Update src/Interpreters/ClusterDiscovery.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
  • Loading branch information
vdimir and antonio2368 committed Jan 15, 2024
1 parent 53e2a97 commit 89fadd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interpreters/ClusterDiscovery.cpp
Expand Up @@ -136,7 +136,7 @@ ClusterDiscovery::ClusterDiscovery(
const auto & password = config.getString(cluster_config_prefix + ".password", "");
const auto & cluster_secret = config.getString(cluster_config_prefix + ".secret", "");
if (!password.empty() && !cluster_secret.empty())
throw Exception(ErrorCodes::NO_ELEMENTS_IN_CONFIG, "Mutually exclusive options 'password' and 'secret' are specified for cluster '{}'", key);
throw Exception(ErrorCodes::NO_ELEMENTS_IN_CONFIG, "Both 'password' and 'secret' are specified for cluster '{}', only one option can be used at the same time", key);

clusters_info.emplace(
key,
Expand Down

0 comments on commit 89fadd7

Please sign in to comment.