From b8ae9112b429f9cd18afc208cbbda942bc62d0b7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 25 Nov 2023 21:06:18 +0100 Subject: Don't hide errors when trying to make configuration directories. There should be no error if the directories already exist, and otherwise I think we want to know about the error. --- src/lib/state.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/state.cc b/src/lib/state.cc index f345d119e..e0d008810 100644 --- a/src/lib/state.cc +++ b/src/lib/state.cc @@ -79,8 +79,7 @@ boost::filesystem::path State::write_path (string file) { auto p = config_path_or_override(config_versions.front()); - boost::system::error_code ec; - dcp::filesystem::create_directories(p, ec); + dcp::filesystem::create_directories(p); p /= file; return p; } -- cgit v1.2.3