summaryrefslogtreecommitdiff
path: root/src/lib/send_problem_report_job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-16 22:21:49 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-16 23:16:23 +0100
commit83e5ff9a10b8f2e44bfc0d25d3f55eb06f3af518 (patch)
tree5f249380acbdae22b0e49ad2781e64404c8e6c7c /src/lib/send_problem_report_job.cc
parentd6f2c9547db4dbde17ae97ea37148b62a249bf63 (diff)
Don't fail to send a problem report if there's no ffprobe.log
Diffstat (limited to 'src/lib/send_problem_report_job.cc')
-rw-r--r--src/lib/send_problem_report_job.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc
index 6ab83ee62..6fbb73430 100644
--- 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";
}