summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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";
}