From 8ffc4c1034931d04f9904187c76b730f2ae61965 Mon Sep 17 00:00:00 2001 From: Shauren Date: Fri, 23 Jun 2023 10:27:44 +0200 Subject: Tools/Extractors: Warn when casc storage could not be opened in remote mode because a local installation was detected in input/cache directory --- src/tools/map_extractor/System.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tools/map_extractor') 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()); } -- cgit v1.2.3