Fix some spelling mistakes (mostly in comments).
[dcpomatic.git] / src / lib / send_problem_report_job.cc
index 6ab83ee6211d6bea24b93fb6e6367f367d93f979..34822b1561d7ade97c41d8dd236a4c383c9888fc 100644 (file)
@@ -38,7 +38,7 @@ using std::shared_ptr;
 using std::string;
 
 
-/** @param film Film thta the problem is with, or 0.
+/** @param film Film that the problem is with, or 0.
  *  @param from Email address to use for From:
  *  @param summary Summary of the problem.
  */
@@ -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";
 }