diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-26 11:53:40 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-26 11:53:40 +0200 |
| commit | 74e944d9ba137386efff089f9906e64d255836c9 (patch) | |
| tree | e4b15b1d1164c069b6df036f4f4c0316c665a7e1 /src/tools/dcpomatic.cc | |
| parent | 17ef19940f152ceeb2e1ad696dd5e7ac5917d8cd (diff) | |
Allow customisation of error report email address.
Diffstat (limited to 'src/tools/dcpomatic.cc')
| -rw-r--r-- | src/tools/dcpomatic.cc | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index de4ddebc2..a1b2cf750 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1865,31 +1865,34 @@ private: error_dialog ( nullptr, wxString::Format( - _("An exception occurred: %s (%s)\n\n") + REPORT_PROBLEM, - std_to_wx (e.what()), - std_to_wx (e.file().string().c_str()) + _("An exception occurred: %s (%s)\n\n%s"), + std_to_wx(e.what()), + std_to_wx(e.file().string().c_str()), + wx::report_problem() ) ); } catch (boost::filesystem::filesystem_error& e) { error_dialog ( nullptr, wxString::Format( - _("An exception occurred: %s (%s) (%s)\n\n") + REPORT_PROBLEM, - std_to_wx (e.what()), - std_to_wx (e.path1().string()), - std_to_wx (e.path2().string()) + _("An exception occurred: %s (%s) (%s)\n\n%s"), + std_to_wx(e.what()), + std_to_wx(e.path1().string()), + std_to_wx(e.path2().string()), + wx::report_problem() ) ); } catch (exception& e) { error_dialog ( nullptr, wxString::Format( - _("An exception occurred: %s.\n\n") + REPORT_PROBLEM, - std_to_wx (e.what ()) + _("An exception occurred: %s.\n\n%s"), + std_to_wx(e.what()), + wx::report_problem() ) ); } catch (...) { - error_dialog (0, _("An unknown exception occurred.") + " " + REPORT_PROBLEM); + error_dialog(nullptr, _("An unknown exception occurred.") + " " + wx::report_problem()); } } |
