diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-16 22:21:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-16 23:16:23 +0100 |
| commit | 83e5ff9a10b8f2e44bfc0d25d3f55eb06f3af518 (patch) | |
| tree | 5f249380acbdae22b0e49ad2781e64404c8e6c7c /src/lib/send_problem_report_job.cc | |
| parent | d6f2c9547db4dbde17ae97ea37148b62a249bf63 (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.cc | 6 |
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"; } |
