From 54aab04b8b27fc7ebecad1c853348641e9792638 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 27 Jan 2023 23:09:53 +0100 Subject: [PATCH] Improve error when the KDM period is outside the signer period in the KDM creator. --- src/tools/dcpomatic_kdm.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc index 9d6fa2e8f..f0406c1d0 100644 --- a/src/tools/dcpomatic_kdm.cc +++ b/src/tools/dcpomatic_kdm.cc @@ -453,6 +453,13 @@ private: wxString::Format (s, result.second, std_to_wx(_output->directory().string()).data()) ); } + } catch (dcp::BadKDMDateError& e) { + if (e.starts_too_early()) { + error_dialog(this, _("The KDM start period is before (or close to) the start of the signing certificate's validity period. Use a later start time for this KDM.")); + } else { + error_dialog(this, _("The KDM end period is after (or close to) the end of the signing certficates' validity period. Either use an earlier end time for this KDM or re-create your signing certificates in the DCP-o-matic preferences window.")); + } + return; } catch (dcp::NotEncryptedError& e) { error_dialog (this, _("CPL's content is not encrypted.")); } catch (exception& e) { -- 2.30.2