diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:15:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:15:03 +0100 |
| commit | 40162baf4ac63ee28624eaeb04b21db913eb7cca (patch) | |
| tree | 292b4c03f98a9781f703ed49ab8cb65f72f25972 | |
| parent | 4fc8318d4e21c16cc3160aad6101a1ee8ef4a39e (diff) | |
Nice error when a KDM cannot be made because its validity period is not within the signing certificate chain's validity period.
| -rw-r--r-- | src/wx/kdm_dialog.cc | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
