diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-09 21:55:15 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-10 20:50:32 +0200 |
| commit | 7a4763153548619b379222d5c22d10b238ba0ac3 (patch) | |
| tree | 9388ed2352aec643e938727bbbc9c9155d9092fb /src/lib/film.cc | |
| parent | 9e90111e53a0b0739d0789afd26f29e63f803917 (diff) | |
Convert some paths to string.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index cdf29766d..1be1c0607 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -498,7 +498,7 @@ Film::write_metadata() try { metadata()->write_to_file_formatted(filename.string()); } catch (xmlpp::exception& e) { - throw FileError(String::compose("Could not write metadata file (%1)", e.what()), filename); + throw FileError(String::compose("Could not write metadata file (%1)", e.what()), filename.string()); } set_dirty(false); } @@ -2437,9 +2437,9 @@ Film::read_remembered_assets() const assets.push_back(RememberedAsset(node)); } } catch (std::exception& e) { - LOG_ERROR("Could not read assets file %1 (%2)", filename, e.what()); + LOG_ERROR("Could not read assets file %1 (%2)", filename.string(), e.what()); } catch (...) { - LOG_ERROR("Could not read assets file %1", filename); + LOG_ERROR("Could not read assets file %1", filename.string()); } return assets; @@ -2459,9 +2459,9 @@ Film::write_remembered_assets(vector<RememberedAsset> const& assets) const try { doc->write_to_file_formatted(dcp::filesystem::fix_long_path(file(assets_file)).string()); } catch (std::exception& e) { - LOG_ERROR("Could not write assets file %1 (%2)", file(assets_file), e.what()); + LOG_ERROR("Could not write assets file %1 (%2)", file(assets_file).string(), e.what()); } catch (...) { - LOG_ERROR("Could not write assets file %1", file(assets_file)); + LOG_ERROR("Could not write assets file %1", file(assets_file).string()); } } |
