diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-06-05 00:30:16 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 00:35:10 +0200 |
| commit | 202da27202bd644138ef4033cd2e4b6d752303b1 (patch) | |
| tree | 804121c8fa652446d60d8229a0a8038a89b05948 /src | |
| parent | 9386e9c7c911df62f228b466cdb57c1d2eefb056 (diff) | |
Fix incorrectly reported config filename, and give reason for failure.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index fc7dd5e40..0300778cb 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1463,13 +1463,14 @@ private: try { Config::instance()->write_config(); } catch (exception& e) { - error_dialog ( + error_dialog( this, - wxString::Format ( + wxString::Format( _("Could not write to config file at %s. Your changes have not been saved."), - std_to_wx (Config::instance()->cinemas_file().string()).data() - ) - ); + std_to_wx(Config::config_write_file().string()) + ), + std_to_wx(e.what()) + ); } for (int i = 0; i < _history_items; ++i) { |
