aboutsummaryrefslogtreecommitdiff
path: root/src/tools/map_extractor
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-06-23 10:27:44 +0200
committerShauren <shauren.trinity@gmail.com>2023-06-23 10:27:44 +0200
commit8ffc4c1034931d04f9904187c76b730f2ae61965 (patch)
treed8892ca628fbb2272e3660147c01205e6ce6be94 /src/tools/map_extractor
parent9ad1e5d635e2fd4c2486d5f2bf1cb52d8e768558 (diff)
Tools/Extractors: Warn when casc storage could not be opened in remote mode because a local installation was detected in input/cache directory
Diffstat (limited to 'src/tools/map_extractor')
-rw-r--r--src/tools/map_extractor/System.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/map_extractor/System.cpp b/src/tools/map_extractor/System.cpp
index ef1c02468f7..6257e4c6ff2 100644
--- a/src/tools/map_extractor/System.cpp
+++ b/src/tools/map_extractor/System.cpp
@@ -148,7 +148,8 @@ void CreateDir(boost::filesystem::path const& path)
if (fs::exists(path))
return;
- if (!fs::create_directory(path))
+ boost::system::error_code err;
+ if (!fs::create_directory(path, err) || err)
throw std::runtime_error("Unable to create directory" + path.string());
}