From 3369f4376a13fc9e68edaa4e674b286e5df4b021 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 3 Sep 2017 23:53:02 +0100 Subject: [PATCH] Some more verbose errors. --- src/lib/job.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/job.cc b/src/lib/job.cc index 31f336b65..b5be02b4c 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -120,8 +120,9 @@ 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."), - boost::filesystem::absolute (e.file()).string() + _("DCP-o-matic could not open the file %1 (%2). Perhaps it does not exist or is in an unexpected format."), + boost::filesystem::absolute (e.file()).string(), + e.what() ) ); @@ -134,8 +135,9 @@ Job::run_wrapper () 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."), - boost::filesystem::absolute (e.path1()).string() + _("DCP-o-matic could not open the file %1 (%2). Perhaps it does not exist or is in an unexpected format."), + boost::filesystem::absolute (e.path1()).string(), + e.what() ) ); } else { -- 2.30.2