Give a more informative error when failing to find content.
authorCarl Hetherington <cth@carlh.net>
Fri, 18 Dec 2015 23:35:23 +0000 (23:35 +0000)
committerCarl Hetherington <cth@carlh.net>
Fri, 18 Dec 2015 23:35:38 +0000 (23:35 +0000)
src/lib/job.cc

index 6ba6a3e1a35c6be4880df3dfb16e0f53ddc1d37d..2c2e0667329c1c0ef435d036fd31c256d109000a 100644 (file)
@@ -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 (