From 69b906c8f63e3fdd2df802dda52362f63ac8f788 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 18 Dec 2015 23:35:23 +0000 Subject: [PATCH] Give a more informative error when failing to find content. --- src/lib/job.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 ( -- 2.30.2