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:
Azat Khuzhin 2024-05-10 20:02:01 +02:00
parent dc7f515945
commit ee76eede55

View File

@ -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);
}
}