projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f93101c
)
Don't hide errors when trying to make configuration directories.
author
Carl Hetherington
<cth@carlh.net>
Sat, 25 Nov 2023 20:06:18 +0000
(21:06 +0100)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/src/lib/state.cc
b/src/lib/state.cc
index f345d119e1515f4d7a0aaa72e53486d1a1338e16..e0d00881027a3bc62cd514df09274075287ce6a5 100644
(file)
--- 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());
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;
}
p /= file;
return p;
}