summaryrefslogtreecommitdiff
path: root/src/lib/film.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-13 23:43:12 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-13 23:43:12 +0200
commitc1d3f6f4f645e76302ca4262de3517497fa1e14b (patch)
tree1e12c089628be8bb798b425ef78865773b6b7e2e /src/lib/film.cc
parent73747a031e35ab8884aa16ebd3c8721dfb0391bc (diff)
parent4f850f9958beacd8d2b39fda1941b68ffb94b2f0 (diff)
Merge remote-tracking branch 'origin/main' into v2.17.x
Diffstat (limited to 'src/lib/film.cc')
-rw-r--r--src/lib/film.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc
index 2e7df9cf8..835719868 100644
--- a/src/lib/film.cc
+++ b/src/lib/film.cc
@@ -2196,7 +2196,7 @@ InfoFileHandle::InfoFileHandle (boost::mutex& mutex, boost::filesystem::path pat
, _file(path, read ? "rb" : (dcp::filesystem::exists(path) ? "r+b" : "wb"))
{
if (!_file) {
- throw OpenFileError(path, errno, read ? OpenFileError::READ : (dcp::filesystem::exists(path) ? OpenFileError::READ_WRITE : OpenFileError::WRITE));
+ throw OpenFileError(path, _file.open_error(), read ? OpenFileError::READ : (dcp::filesystem::exists(path) ? OpenFileError::READ_WRITE : OpenFileError::WRITE));
}
}