From 05a54e2a87e18917b6019b7d362f6cd3719f69ec Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 7 Oct 2025 09:57:29 +0200 Subject: Improve the error you get when trying to upload a DCP with bad settings. --- src/lib/job.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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( -- cgit v1.2.3