Catch CPLNotFoundError more nicely.
[dcpomatic.git] / src / lib / job.cc
index 1c7fe5a83ff5d333eafa62141fce4ec3c00e059e..8ce63ced0213d66ea2c03dce79bd3a29579562d0 100644 (file)
@@ -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 (