Catch cxml errors when verifying.
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Sep 2020 10:04:50 +0000 (12:04 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 20 Sep 2020 17:32:42 +0000 (19:32 +0200)
src/verify.cc

index 4fce49a33db8fd277a437a2be53ebbe04948624b..9a0895f6f8e79872c802aa3f552d8b0973baf0b3 100644 (file)
@@ -552,6 +552,8 @@ dcp::verify (
                        notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::GENERAL_READ, string(e.what())));
                } catch (XMLError& e) {
                        notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::GENERAL_READ, string(e.what())));
+               } catch (cxml::Error& e) {
+                       notes.push_back (VerificationNote(VerificationNote::VERIFY_ERROR, VerificationNote::GENERAL_READ, string(e.what())));
                }
 
                BOOST_FOREACH (shared_ptr<CPL> cpl, dcp->cpls()) {