Catch CPLNotFoundError more nicely.
authorCarl Hetherington <cth@carlh.net>
Sat, 17 Sep 2022 20:31:24 +0000 (22:31 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 17 Sep 2022 20:31:24 +0000 (22:31 +0200)
src/lib/job.cc

index 1c7fe5a83ff5d333eafa62141fce4ec3c00e059e..8ce63ced0213d66ea2c03dce79bd3a29579562d0 100644 (file)
@@ -235,6 +235,12 @@ Job::run_wrapper ()
                set_progress (1);
                set_state (FINISHED_ERROR);
 
                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 (
        } catch (std::exception& e) {
 
                set_error (