Fix miss to throw exception when failed to create dir (#21886)

Signed-off-by: yah01 <yang.cen@zilliz.com>
pull/21890/head
yah01 2023-01-31 13:49:50 +08:00 committed by GitHub
parent d329cf33a0
commit 61c2f29ab3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ LocalChunkManager::CreateDir(const std::string& dir) {
boost::filesystem::path dirPath(dir);
auto create_success = boost::filesystem::create_directories(dirPath);
if (!create_success) {
CreateFileException("create dir failed" + dir);
throw CreateFileException("create dir failed" + dir);
}
}