summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-18 23:35:23 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-18 23:35:38 +0000
commit69b906c8f63e3fdd2df802dda52362f63ac8f788 (patch)
tree28e0095dc3b4f7e32d2cb19dcd642789d9826f8a /src/lib
parent114d0e76014b53d185d96c5daf2e7a91088a79a4 (diff)
Give a more informative error when failing to find content.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/job.cc10
1 files 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 (