summaryrefslogtreecommitdiff
path: root/src/lib/file_group.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-09-03 17:55:11 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-03 17:55:19 +0200
commit4049ec5e8bdddbc48689521a26bf47236c2b490d (patch)
tree6532546b5a1edcd77e8824d8cd854eac13e38c44 /src/lib/file_group.cc
parent5db3eda9c6f0d6b027263c519000997677253504 (diff)
Fix a few places where we should use dcp::File::open_error()
to get a more accurate error number on Windows.
Diffstat (limited to 'src/lib/file_group.cc')
-rw-r--r--src/lib/file_group.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/file_group.cc b/src/lib/file_group.cc
index 469d07702..27137196e 100644
--- a/src/lib/file_group.cc
+++ b/src/lib/file_group.cc
@@ -86,7 +86,7 @@ FileGroup::ensure_open_path (size_t p) const
auto file = dcp::File(_paths[_current_path], "rb");
if (!file) {
- throw OpenFileError(_paths[_current_path], errno, OpenFileError::READ);
+ throw OpenFileError(_paths[_current_path], file.open_error(), OpenFileError::READ);
}
_current_path = p;