From 61c2f29ab350486351d5dfafbeba2b00ef5ebb61 Mon Sep 17 00:00:00 2001 From: yah01 Date: Tue, 31 Jan 2023 13:49:50 +0800 Subject: [PATCH] Fix miss to throw exception when failed to create dir (#21886) Signed-off-by: yah01 --- internal/core/src/storage/LocalChunkManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/core/src/storage/LocalChunkManager.cpp b/internal/core/src/storage/LocalChunkManager.cpp index e80f8875c..c6ad117b6 100644 --- a/internal/core/src/storage/LocalChunkManager.cpp +++ b/internal/core/src/storage/LocalChunkManager.cpp @@ -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); } } -- GitLab