Throw xmlpp::internal_error also as KDMFormatError.
authorCarl Hetherington <cth@carlh.net>
Sun, 12 Feb 2023 22:09:29 +0000 (23:09 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 12 Feb 2023 22:09:29 +0000 (23:09 +0100)
src/encrypted_kdm.cc

index 10790d483a41c775a0a8c0080128bfba5f756475..465a657da2a60512791a91fff4e9bb571501e7e7 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 (xmlpp::internal_error& e) {
+               throw KDMFormatError(e.what());
        } catch (cxml::Error& e) {
                throw KDMFormatError(e.what());
        }