projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c41817
)
Report boost::filesystem_error with more details.
author
Carl Hetherington
<cth@carlh.net>
Sun, 7 Feb 2021 21:16:58 +0000
(22:16 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 7 Feb 2021 21:16:58 +0000
(22:16 +0100)
src/tools/dcpomatic.cc
patch
|
blob
|
history
diff --git
a/src/tools/dcpomatic.cc
b/src/tools/dcpomatic.cc
index a670af7dbb7b87396aaca76f9b69e32b3409524d..7815541d277b809dce2381bc20e71f23727c15e0 100644
(file)
--- a/
src/tools/dcpomatic.cc
+++ b/
src/tools/dcpomatic.cc
@@
-1710,17
+1710,27
@@
private:
throw;
} catch (FileError& e) {
error_dialog (
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()),
_("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,
)
);
} catch (exception& e) {
error_dialog (
nullptr,
- wxString::Format
(
+ wxString::Format(
_("An exception occurred: %s.\n\n") + REPORT_PROBLEM,
std_to_wx (e.what ())
)
_("An exception occurred: %s.\n\n") + REPORT_PROBLEM,
std_to_wx (e.what ())
)