summaryrefslogtreecommitdiff
path: root/src/lib/job.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-20 01:10:58 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-20 01:10:58 +0000
commite63de384db89a83937d42f10d4146c3adf14fdb2 (patch)
tree721c2fffabf33e91718664cfb98638c8b07cfced /src/lib/job.cc
parentf9af0067aae1b9364aae94b8bc6ea5e00d666d1d (diff)
Report job errors even if they contain < or >. Give a better error when parsing a subtitle file fails.
Diffstat (limited to 'src/lib/job.cc')
-rw-r--r--src/lib/job.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/job.cc b/src/lib/job.cc
index 8cc6ced8e..451776524 100644
--- a/src/lib/job.cc
+++ b/src/lib/job.cc
@@ -190,6 +190,12 @@ Job::run_wrapper ()
set_progress (1);
set_state (FINISHED_ERROR);
+ } catch (FileError& e) {
+
+ set_error (e.what(), e.what());
+ set_progress (1);
+ set_state (FINISHED_ERROR);
+
} catch (std::exception& e) {
set_error (