summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-27 23:09:53 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-11 22:26:38 +0100
commit54aab04b8b27fc7ebecad1c853348641e9792638 (patch)
tree7fad053165586bd80a49fe1cd2faf5439b723887
parent788ef2cf5daf510651cc4f5eb7940d7bd0c44b76 (diff)
Improve error when the KDM period is outside the signer period in the KDM creator.
-rw-r--r--src/tools/dcpomatic_kdm.cc7
1 files changed, 7 insertions, 0 deletions
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) {