summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-17 22:31:24 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-17 22:31:24 +0200
commit345df3ae8254f25299c2fc2022b1143d444f9a56 (patch)
tree51f81465dbfcc844d11a3984f2cb60cc7f47bee6 /src/lib
parent0f9f004c50a8bea6b87d5a1636f95f67066e5187 (diff)
Catch CPLNotFoundError more nicely.
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 1c7fe5a83..8ce63ced0 100644
--- a/src/lib/job.cc
+++ b/src/lib/job.cc
@@ -235,6 +235,12 @@ Job::run_wrapper ()
set_progress (1);
set_state (FINISHED_ERROR);
+ } catch (CPLNotFoundError& e) {
+
+ set_error(e.what());
+ set_progress(1);
+ set_state(FINISHED_ERROR);
+
} catch (std::exception& e) {
set_error (