summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-08-18 01:42:19 +0200
committerCarl Hetherington <cth@carlh.net>2022-08-18 01:42:19 +0200
commitfeff11732f33487a5bec6fb568f43f86c1a0ab0b (patch)
tree035232b13270670c7d52e4f1f3828f83f41547a5 /src
parent959f05190f52cab5c6d14abd486e8d754cbd9fe3 (diff)
Throw a KDMFormatError if cxml throws an error when reading KDM XML.
Diffstat (limited to 'src')
-rw-r--r--src/encrypted_kdm.cc2
1 files changed, 2 insertions, 0 deletions
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());
}
}