mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge pull request #67935 from ClickHouse/davenger_patch_42
Add keeper error description to the message
This commit is contained in:
commit
967d237ba6
@ -800,7 +800,8 @@ void StorageReplicatedMergeTree::createNewZooKeeperNodes()
|
||||
{
|
||||
auto res = future.get();
|
||||
if (res.error != Coordination::Error::ZOK && res.error != Coordination::Error::ZNODEEXISTS)
|
||||
throw Coordination::Exception(res.error, "Failed to create new nodes {} at {}", res.path_created, zookeeper_path);
|
||||
throw Coordination::Exception(res.error, "Failed to create new nodes {} at {} with error {}",
|
||||
res.path_created, zookeeper_path, Coordination::errorMessage(res.error));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user