Better error when trying to load a much-too-large file as a KDM in the KDM creator.
authorCarl Hetherington <cth@carlh.net>
Sun, 10 Mar 2019 21:00:11 +0000 (21:00 +0000)
committerCarl Hetherington <cth@carlh.net>
Sun, 10 Mar 2019 21:00:11 +0000 (21:00 +0000)
src/tools/dcpomatic_kdm.cc

index 36de84906e4556c96e5f75e1f6f6e70501413f5d..6c1fbd8004c0fedbda1b482fd0480d068aa14b51 100644 (file)
@@ -442,6 +442,12 @@ private:
                                        this,
                                        _("Could not decrypt the DKDM.  Perhaps it was not created with the correct certificate.")
                                        );
                                        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 ();
                        }
                }
                d->Destroy ();