aboutsummaryrefslogtreecommitdiff
path: root/src/tools/map_extractor
diff options
context:
space:
mode:
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());
}