From: Carl Hetherington Date: Sun, 1 Dec 2019 22:15:03 +0000 (+0100) Subject: Nice error when a KDM cannot be made because its validity period is not within the... X-Git-Tag: v2.15.37~8 X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=40162baf4ac63ee28624eaeb04b21db913eb7cca Nice error when a KDM cannot be made because its validity period is not within the signing certificate chain's validity period. --- diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc index 5a31501cf..8682fe82f 100644 --- a/src/wx/kdm_dialog.cc +++ b/src/wx/kdm_dialog.cc @@ -166,6 +166,13 @@ KDMDialog::make_clicked () !_output->forensic_mark_video(), for_audio ); + } 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 (runtime_error& e) { error_dialog (this, std_to_wx(e.what())); return;