Some more verbose errors.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 22:53:02 +0000 (23:53 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 22:53:02 +0000 (23:53 +0100)
src/lib/job.cc

index 31f336b6565500633c5479e1d01ba85c155a927f..b5be02b4c2ce0a9da71196383b4b16fecd4619b0 100644 (file)
@@ -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 {