diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:55:11 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:55:19 +0200 |
| commit | 4049ec5e8bdddbc48689521a26bf47236c2b490d (patch) | |
| tree | 6532546b5a1edcd77e8824d8cd854eac13e38c44 /src/lib/string_text_file.cc | |
| parent | 5db3eda9c6f0d6b027263c519000997677253504 (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/string_text_file.cc')
| -rw-r--r-- | src/lib/string_text_file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/string_text_file.cc b/src/lib/string_text_file.cc index 9b43b35a6..f5d5e0d2a 100644 --- a/src/lib/string_text_file.cc +++ b/src/lib/string_text_file.cc @@ -57,7 +57,7 @@ StringTextFile::StringTextFile (shared_ptr<const StringTextFileContent> content) if (ext == ".stl") { dcp::File f(content->path(0), "rb"); if (!f) { - throw OpenFileError (f.path(), errno, OpenFileError::READ); + throw OpenFileError(f.path(), f.open_error(), OpenFileError::READ); } try { reader.reset(new sub::STLBinaryReader(f.get())); |
