mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Add file path into "File must not be a directory" message
This is to fix 00002_log_and_exception_messages_formatting Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
dc7f515945
commit
ee76eede55
@ -224,7 +224,7 @@ void checkCreationIsAllowed(
|
||||
{
|
||||
auto table_path_stat = fs::status(table_path);
|
||||
if (fs::exists(table_path_stat) && fs::is_directory(table_path_stat))
|
||||
throw Exception(ErrorCodes::INCORRECT_FILE_NAME, "File must not be a directory");
|
||||
throw Exception(ErrorCodes::INCORRECT_FILE_NAME, "File {} must not be a directory", table_path);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user