diff options
| author | Shauren <shauren.trinity@gmail.com> | 2023-06-23 10:27:44 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2023-06-23 10:27:44 +0200 |
| commit | 8ffc4c1034931d04f9904187c76b730f2ae61965 (patch) | |
| tree | d8892ca628fbb2272e3660147c01205e6ce6be94 /src/tools/map_extractor | |
| parent | 9ad1e5d635e2fd4c2486d5f2bf1cb52d8e768558 (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.cpp | 3 |
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()); } |
