From feff11732f33487a5bec6fb568f43f86c1a0ab0b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 18 Aug 2022 01:42:19 +0200 Subject: Throw a KDMFormatError if cxml throws an error when reading KDM XML. --- src/encrypted_kdm.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/encrypted_kdm.cc b/src/encrypted_kdm.cc index 5e5f9fe4..10790d48 100644 --- a/src/encrypted_kdm.cc +++ b/src/encrypted_kdm.cc @@ -598,6 +598,8 @@ EncryptedKDM::EncryptedKDM (string s) _data = new data::EncryptedKDMData (doc); } catch (xmlpp::parse_error& e) { throw KDMFormatError (e.what ()); + } catch (cxml::Error& e) { + throw KDMFormatError(e.what()); } } -- cgit v1.2.3