adds some info to the exception about zookeeper path

This commit is contained in:
Javi Santana 2020-08-25 18:09:22 +02:00
parent 0c5b0abfe2
commit 4942d85090

View File

@ -3484,7 +3484,10 @@ std::optional<UInt64> StorageReplicatedMergeTree::totalBytes() const
void StorageReplicatedMergeTree::assertNotReadonly() const
{
if (is_readonly)
throw Exception("Table is in readonly mode", ErrorCodes::TABLE_IS_READ_ONLY);
{
auto err = "Table is in readonly mode (zookeeper path: " + zookeeper_path + ")";
throw Exception(err, ErrorCodes::TABLE_IS_READ_ONLY);
}
}