summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-12 23:09:46 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-12 23:09:46 +0100
commit16de10ded1501e59a95ca1efa6e6e8ab0c7283a4 (patch)
tree527a0b18df38f6f40bb39a1c856dd499f9d1144f
parent305a5518209bb15e8bba72f9b75eb570706d7b91 (diff)
Give a better error when a KDMFormatError is thrown (DoM #2446).v1.8.57
-rw-r--r--tools/dcpkdm.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/dcpkdm.cc b/tools/dcpkdm.cc
index d8a10fa3..434d1652 100644
--- a/tools/dcpkdm.cc
+++ b/tools/dcpkdm.cc
@@ -142,6 +142,11 @@ try
return 0;
}
+catch (dcp::KDMFormatError& e)
+{
+ cerr << "Could not parse KDM file. Is it a valid KDM?" << "\n";
+ exit(EXIT_FAILURE);
+}
catch (std::exception& e)
{
cerr << "Error: " << e.what() << "\n";