diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-10-07 09:57:29 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-10-07 09:57:58 +0200 |
| commit | 05a54e2a87e18917b6019b7d362f6cd3719f69ec (patch) | |
| tree | dc7815dafe0779a57bcb9915f94e8bc11cacdd5b | |
| parent | 2adc3886077fc1c694f618ed19fbc01629548cb5 (diff) | |
Improve the error you get when trying to upload a DCP with bad settings.
| -rw-r--r-- | src/lib/job.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/job.cc b/src/lib/job.cc index 815d81b5c..ab4f5c37a 100644 --- a/src/lib/job.cc +++ b/src/lib/job.cc @@ -275,6 +275,19 @@ Job::run_wrapper() set_progress(1); set_state(FINISHED_ERROR); + } catch (NetworkError& e) { + + if (json_name() == "upload") { + set_error( + e.what(), + fmt::format(_("Check the server settings in the TMS tab of preferences, or un-tick \"Upload DCP to TMS after creation\" if you do not want to upload your DCP.")) + ); + } else { + set_error(e.what()); + } + set_progress(1); + set_state(FINISHED_ERROR); + } catch (std::exception& e) { set_error( |
