diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-08-18 01:42:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-08-18 01:42:19 +0200 |
| commit | feff11732f33487a5bec6fb568f43f86c1a0ab0b (patch) | |
| tree | 035232b13270670c7d52e4f1f3828f83f41547a5 /src | |
| parent | 959f05190f52cab5c6d14abd486e8d754cbd9fe3 (diff) | |
Throw a KDMFormatError if cxml throws an error when reading KDM XML.
Diffstat (limited to 'src')
| -rw-r--r-- | src/encrypted_kdm.cc | 2 |
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()); } } |
