diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-02-07 22:16:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-02-07 22:16:58 +0100 |
| commit | f09a7994fb374d4a6dde0224eb1dfb5cbb83bc0b (patch) | |
| tree | 46da838865601f902815a872bfe6b2079e705344 | |
| parent | 4c4181742f5bf238f07a7cfd1fe60ec475f4c32a (diff) | |
Report boost::filesystem_error with more details.
| -rw-r--r-- | src/tools/dcpomatic.cc | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index a670af7db..7815541d2 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -1710,17 +1710,27 @@ private: throw; } catch (FileError& e) { error_dialog ( - 0, - wxString::Format ( + 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 ()) + std_to_wx (e.file().string().c_str()) + ) + ); + } 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()) ) ); } catch (exception& e) { error_dialog ( nullptr, - wxString::Format ( + wxString::Format( _("An exception occurred: %s.\n\n") + REPORT_PROBLEM, std_to_wx (e.what ()) ) |
