From eaa092cae2c633d78c8b5856956df420a8c5096c Mon Sep 17 00:00:00 2001 From: Denny Crane Date: Mon, 12 Apr 2021 10:58:06 -0300 Subject: [PATCH] Update MergeTreeData.cpp Better error message. --- src/Storages/MergeTree/MergeTreeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Storages/MergeTree/MergeTreeData.cpp b/src/Storages/MergeTree/MergeTreeData.cpp index dfa35ea2b9f..ee8e15008cb 100644 --- a/src/Storages/MergeTree/MergeTreeData.cpp +++ b/src/Storages/MergeTree/MergeTreeData.cpp @@ -2880,7 +2880,7 @@ void MergeTreeData::movePartitionToVolume(const ASTPtr & partition, const String throw Exception("Volume " + name + " does not exists on policy " + getStoragePolicy()->getName(), ErrorCodes::UNKNOWN_DISK); if (parts.empty()) - throw Exception("Nothing to move", ErrorCodes::NO_SUCH_DATA_PART); + throw Exception("Nothing to move (сheck that the partition exists).", ErrorCodes::NO_SUCH_DATA_PART); parts.erase(std::remove_if(parts.begin(), parts.end(), [&](auto part_ptr) {