projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6f2c95
)
Don't fail to send a problem report if there's no ffprobe.log
author
Carl Hetherington
<cth@carlh.net>
Tue, 16 Nov 2021 21:21:49 +0000
(22:21 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 16 Nov 2021 22:16:23 +0000
(23:16 +0100)
src/lib/send_problem_report_job.cc
patch
|
blob
|
history
diff --git
a/src/lib/send_problem_report_job.cc
b/src/lib/send_problem_report_job.cc
index 6ab83ee6211d6bea24b93fb6e6367f367d93f979..6fbb73430093da8db1224ed626face11f9db522a 100644
(file)
--- a/
src/lib/send_problem_report_job.cc
+++ b/
src/lib/send_problem_report_job.cc
@@
-121,6
+121,10
@@
SendProblemReportJob::add_file (string& body, boost::filesystem::path file) cons
{
body += file.string() + ":\n";
body += "---<8----\n";
- body += dcp::file_to_string (_film->file(file));
+ try {
+ body += dcp::file_to_string (_film->file(file));
+ } catch (...) {
+ body += "[could not be read]\n";
+ }
body += "---<8----\n\n";
}