diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-11-16 22:21:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-11-16 22:21:49 +0100 |
| commit | 6f322eec31ef03f73e47564f20c39795b6bb9155 (patch) | |
| tree | 2c1b40eb93d37efd59481017cdd8212533720de1 | |
| parent | 48392f21e8a8410a86e879e78481fe4497b15a04 (diff) | |
Don't fail to send a problem report if there's no ffprobe.log
| -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"; } |
