Throw a KDMFormatError if cxml throws an error when reading KDM XML.
authorCarl Hetherington <cth@carlh.net>
Wed, 17 Aug 2022 23:42:19 +0000 (01:42 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 17 Aug 2022 23:42:19 +0000 (01:42 +0200)
src/encrypted_kdm.cc

index 5e5f9fe445e5cdf0aab42403112d32deb1d00bed..10790d483a41c775a0a8c0080128bfba5f756475 100644 (file)
@@ -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());
        }
 }