Don't hide errors when trying to make configuration directories.
authorCarl Hetherington <cth@carlh.net>
Sat, 25 Nov 2023 20:06:18 +0000 (21:06 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 26 Nov 2023 23:53:17 +0000 (00:53 +0100)
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

index f345d119e1515f4d7a0aaa72e53486d1a1338e16..e0d00881027a3bc62cd514df09274075287ce6a5 100644 (file)
@@ -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;
 }