diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index 7f407199e819..03a215e1aef6 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -283,10 +283,7 @@ MergeTreeData::MergeTreeData( if (disk->exists(current_version_file_path)) { if (!version_file.first.empty()) - { - LOG_ERROR(log, "Duplication of version file {} and {}", fullPath(version_file.second, version_file.first), current_version_file_path); - throw Exception("Multiple format_version.txt file", ErrorCodes::CORRUPTED_DATA); - } + throw Exception(ErrorCodes::CORRUPTED_DATA, "Duplication of version file {} and {}", fullPath(version_file.second, version_file.first), current_version_file_path); version_file = {current_version_file_path, disk}; } }