summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-02-12 23:09:29 +0100
committerCarl Hetherington <cth@carlh.net>2023-02-12 23:09:29 +0100
commit305a5518209bb15e8bba72f9b75eb570706d7b91 (patch)
tree603b28bd6fbcb54ad1c1ecabd3589f90b61c7bdc /src
parent83c3a53c4b44b48823ecdece80bd6c246929ae0b (diff)
Throw xmlpp::internal_error also as KDMFormatError.
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 10790d48..465a657d 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 (xmlpp::internal_error& e) {
+ throw KDMFormatError(e.what());
} catch (cxml::Error& e) {
throw KDMFormatError(e.what());
}