summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-13 00:22:47 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-13 00:22:47 +0000
commit643519230e7060ada52a352b280b289793abf115 (patch)
treeccef0b65756225116bb24b4e0e6f4788fe104f80 /src/lib
parent4f8f6baed5ca7c154f694e0d861f5988b6d0da73 (diff)
Remove bugs everywhere; mantis instead. Catch all exceptions ever from a job.
Diffstat (limited to 'src/lib')
-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 201397f08..896862d14 100644
--- a/src/lib/job.cc
+++ b/src/lib/job.cc
@@ -75,6 +75,12 @@ Job::run_wrapper ()
set_state (FINISHED_ERROR);
set_error (e.what ());
+ } catch (...) {
+
+ set_progress (1);
+ set_state (FINISHED_ERROR);
+ set_error ("unknown exception");
+
}
}