diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:31:24 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-09-17 22:31:24 +0200 |
| commit | 345df3ae8254f25299c2fc2022b1143d444f9a56 (patch) | |
| tree | 51f81465dbfcc844d11a3984f2cb60cc7f47bee6 /src/lib | |
| parent | 0f9f004c50a8bea6b87d5a1636f95f67066e5187 (diff) | |
Catch CPLNotFoundError more nicely.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/job.cc | 6 |
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 ( |
