Don't fail to send a problem report if there's no ffprobe.log
authorCarl Hetherington <cth@carlh.net>
Tue, 16 Nov 2021 21:21:49 +0000 (22:21 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 16 Nov 2021 22:16:23 +0000 (23:16 +0100)
src/lib/send_problem_report_job.cc

index 6ab83ee6211d6bea24b93fb6e6367f367d93f979..6fbb73430093da8db1224ed626face11f9db522a 100644 (file)
@@ -121,6 +121,10 @@ SendProblemReportJob::add_file (string& body, boost::filesystem::path file) cons
 {
        body += file.string() + ":\n";
        body += "---<8----\n";
 {
        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";
 }
        body += "---<8----\n\n";
 }