From: Carl Hetherington Date: Fri, 18 Dec 2015 23:35:23 +0000 (+0000) Subject: Give a more informative error when failing to find content. X-Git-Tag: v2.6.8~6 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=69b906c8f63e3fdd2df802dda52362f63ac8f788 Give a more informative error when failing to find content. --- diff --git a/src/lib/job.cc b/src/lib/job.cc index 6ba6a3e1a..2c2e06673 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -107,7 +107,10 @@ Job::run_wrapper () set_error ( String::compose (_("Could not open %1"), e.file().string()), - String::compose (_("DCP-o-matic could not open the file %1. Perhaps it does not exist or is in an unexpected format."), e.file().string()) + String::compose ( + _("DCP-o-matic could not open the file %1. Perhaps it does not exist or is in an unexpected format."), + boost::filesystem::absolute (e.file()).string() + ) ); set_progress (1); @@ -118,7 +121,10 @@ Job::run_wrapper () if (e.code() == boost::system::errc::no_such_file_or_directory) { set_error ( String::compose (_("Could not open %1"), e.path1().string ()), - String::compose (_("DCP-o-matic could not open the file %1. Perhaps it does not exist or is in an unexpected format."), e.path1().string()) + String::compose ( + _("DCP-o-matic could not open the file %1. Perhaps it does not exist or is in an unexpected format."), + boost::filesystem::absolute (e.path1()).string() + ) ); } else { set_error (