summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-10 21:00:11 +0000
committerCarl Hetherington <cth@carlh.net>2019-03-10 21:00:11 +0000
commit01a0dcfde7cdfdd4ade603338fb9b2fc586a2f01 (patch)
treeb7c4acab641ff594c50adc5c441bdf4f1a78bfa1
parent5112eda774a3388e2ce7624be9cffc7d7368a4ab (diff)
Better error when trying to load a much-too-large file as a KDM in the KDM creator.
-rw-r--r--src/tools/dcpomatic_kdm.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tools/dcpomatic_kdm.cc b/src/tools/dcpomatic_kdm.cc
index 36de84906..6c1fbd800 100644
--- a/src/tools/dcpomatic_kdm.cc
+++ b/src/tools/dcpomatic_kdm.cc
@@ -442,6 +442,12 @@ private:
this,
_("Could not decrypt the DKDM. Perhaps it was not created with the correct certificate.")
);
+ } catch (dcp::MiscError& e) {
+ error_dialog (
+ this,
+ _("Could not read file as a KDM. It is much too large. Make sure you are loading a DKDM (XML) file."),
+ std_to_wx(e.what())
+ );
}
}
d->Destroy ();