Merge pull request #17764 from ClickHouse/fix-ugly-bug

Fix ugly bug in exception message.
This commit is contained in:
alexey-milovidov 2020-12-03 23:19:15 +03:00 committed by GitHub
commit 4ebc410b15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2015,7 +2015,7 @@ void Context::checkCanBeDropped(const String & database, const String & table, c
"1. Size ({}) is greater than max_[table/partition]_size_to_drop ({})\n" "1. Size ({}) is greater than max_[table/partition]_size_to_drop ({})\n"
"2. File '{}' intended to force DROP {}\n" "2. File '{}' intended to force DROP {}\n"
"How to fix this:\n" "How to fix this:\n"
"1. Either increase (or set to zero) max_[table/partition]_size_to_drop in server config\n", "1. Either increase (or set to zero) max_[table/partition]_size_to_drop in server config\n"
"2. Either create forcing file {} and make sure that ClickHouse has write permission for it.\n" "2. Either create forcing file {} and make sure that ClickHouse has write permission for it.\n"
"Example:\nsudo touch '{}' && sudo chmod 666 '{}'", "Example:\nsudo touch '{}' && sudo chmod 666 '{}'",
backQuoteIfNeed(database), backQuoteIfNeed(table), backQuoteIfNeed(database), backQuoteIfNeed(table),